Skip to content

Added an entrypoint script #1043

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

Merged
merged 1 commit into from
Jun 4, 2019
Merged

Conversation

LaurentGoderre
Copy link
Member

Fixes #1039

@@ -61,4 +61,8 @@ RUN set -ex \
&& ln -s /opt/yarn-v$YARN_VERSION/bin/yarnpkg /usr/local/bin/yarnpkg \
&& rm yarn-v$YARN_VERSION.tar.gz.asc yarn-v$YARN_VERSION.tar.gz

COPY docker-entrypoint.sh /usr/local/bin/
RUN ln -s usr/local/bin/docker-entrypoint.sh / # backwards compat
Copy link
Contributor

Choose a reason for hiding this comment

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

You've never had an entrypoint before so this symlink is unnecessary.

Copy link
Member Author

Choose a reason for hiding this comment

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

AAh, I wasn't sure if it was compatibility with older versions of docker. Good to know!

@LaurentGoderre LaurentGoderre force-pushed the entrypoint branch 2 times, most recently from f2032c3 to b3052a9 Compare May 24, 2019 14:09
@LaurentGoderre
Copy link
Member Author

@PeterDaveHello @chorrell any issue with this?

@chorrell
Copy link
Contributor

LGTM.

@nodejs-github-bot
Copy link
Collaborator

Created PR to the official-images repo (docker-library/official-images#6021)

@sloria
Copy link

sloria commented Jun 7, 2019

For others who were relying on the old behavior with the implicit /bin/sh entrypoint: our workaround was to override ENTRYPOINT like so:

ENTRYPOINT []

@LaurentGoderre
Copy link
Member Author

@sloria yikes sorry. I didn't know about that use case.

@willthames
Copy link

Making breaking changes to docker images between 10.15 and 10.16 seems a bit wrong.

This hit us, @sloria's suggestion will help (as would changing CMD to remove node) but it still feels wrong.

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.

Add ENTRYPOINT ["node"]
6 participants