Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade js-yaml [CROM-6825] #736

Merged
merged 5 commits into from
Dec 7, 2021
Merged

Upgrade js-yaml [CROM-6825] #736

merged 5 commits into from
Dec 7, 2021

Conversation

jgainerdewar
Copy link
Collaborator

Also made a few changes to get the development image working for me.

@@ -10,6 +10,7 @@ services:
service: jmui
command: ["npm", "run-script", "ng", "--", "serve", "--host", "jmui"]
volumes:
- /ui/src/assets/environments/
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Create a volume for the below config file to be mounted into. I only 60% understand why this was needed - it's related to the fact that ui/src is already separately mounted in the compose file this one inherits from. Without this, the mounted config file was always empty.

FROM node
FROM node:14

RUN apt-get update && apt-get -y install python
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Explicitly install Python because otherwise it can't be found when needed during npm install.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you either leave a comment or specify explicitly in the code whether this is python2 or python3?

It is confusing (and not your fault) that package managers/OSes use the same name even if they are installed concurrently!

@@ -1,6 +1,8 @@
# Note: This is the dockerfile for development purposes

FROM node
FROM node:14
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Specify (downgrade) node version to fix C compilation errors (see here).

FROM node
FROM node:14

RUN apt-get update && apt-get -y install python
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you either leave a comment or specify explicitly in the code whether this is python2 or python3?

It is confusing (and not your fault) that package managers/OSes use the same name even if they are installed concurrently!

@jgainerdewar jgainerdewar merged commit 644b10a into master Dec 7, 2021
@jgainerdewar jgainerdewar deleted the jgd_crom_6825_jsyaml branch December 7, 2021 16:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants