-
Notifications
You must be signed in to change notification settings - Fork 12
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
Dockerized deployment #28
Conversation
Dockerfile
Outdated
COPY . $APPDIR | ||
|
||
# install & configure NodeJS | ||
RUN curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.1/install.sh | bash && \ |
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.
Any way we can avoid this curl to a remote script? We typically prefer to avoid these types of calls.
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.
It isn't perfect, but what I normally do (from a setup script of mine) is:
# nodejs
su $USER -c "git clone https://github.com/creationix/nvm.git ~/.nvm && cd ~/.nvm && git checkout `git describe --abbrev=0 --tags`"
su $USER -c ". ~/.nvm/nvm.sh && nvm install v6.9.5 && npm install -g npm"
su $USER -c ""
su $USER -c "echo '. \$HOME/.nvm/nvm.sh' >> ~/.bashrc"
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.
Ignore the su $USER stuff, that is specific to what I was doing of course.
What happened with this PR? @peterzen did you plan on addressing the comment or is this obsolete? |
bb3c7f6
to
8b68467
Compare
I wasn't sure if this was being used or not – I've now fixed these items and tested the setup. Can you give it a spin also? |
Building it fails for me:
|
I'll also ask again as I have on the other docker ones. If this meant for dev or production. If it is for production, I would prefer it checkout code based on a git hash rather than use |
Hmm, weird. What command line do you use to launch the build? I meant this to be used for development originally. |
|
Did you run |
I just tried again, made sure I was using the right version of node, did |
I can't reproduce it on Docker version 17.06.0-ce, dockerd running on localhost. Is your dockerd running locally or on a remote host? Could you try with a clean cache, i.e. |
Oh it's |
That fixed it for me. |
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.
Seems all good to me. @alexlyp should confirm that his request got done then good to go.
Thanks for your comments @jcvernaleo |
Added Docker configuration