-
Notifications
You must be signed in to change notification settings - Fork 5
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
Conversation
@@ -10,6 +10,7 @@ services: | |||
service: jmui | |||
command: ["npm", "run-script", "ng", "--", "serve", "--host", "jmui"] | |||
volumes: | |||
- /ui/src/assets/environments/ |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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!
Also made a few changes to get the development image working for me.