-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Add "/entrypoint.sh" backwards-compat symlink in Oracle-based images #885
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
Add "/entrypoint.sh" backwards-compat symlink in Oracle-based images #885
Conversation
@@ -130,6 +130,9 @@ RUN set -eux; \ | |||
VOLUME /var/lib/mysql | |||
|
|||
COPY docker-entrypoint.sh /usr/local/bin/ | |||
{{ if [ "5.7", "8.0" ] | index(env.version) then ( -}} | |||
RUN ln -s usr/local/bin/docker-entrypoint.sh /entrypoint.sh # backwards compat |
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.
Should this use an absolute path? (just to be sure / explicit)?
RUN ln -s usr/local/bin/docker-entrypoint.sh /entrypoint.sh # backwards compat | |
RUN ln -s /usr/local/bin/docker-entrypoint.sh /entrypoint.sh # backwards compat |
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.
(I guess the image would unlikely get a WORKDIR changed/set, but if it would..)
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's put in the root, and this matches the Debian version 😇
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.
(Semi-intentional that it's not "pretty" so that we definitely get rid of it later 👀)
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.
🤷 alright, you win 😂💜
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.
No hard(link) feelings 🤣
Changes: - docker-library/mysql@2e83286: Merge pull request docker-library/mysql#885 from infosiftr/entrypoint-back-compat - docker-library/mysql@ea98f69: Add "/entrypoint.sh" backwards-compat symlink in Oracle-based images
Changes: - docker-library/mysql@2e83286: Merge pull request docker-library/mysql#885 from infosiftr/entrypoint-back-compat - docker-library/mysql@ea98f69: Add "/entrypoint.sh" backwards-compat symlink in Oracle-based images
Fixes #884
Thanks for the report, @martynd! ❤️