Skip to content

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

Merged
merged 1 commit into from
Jul 11, 2022

Conversation

tianon
Copy link
Member

@tianon tianon commented Jul 8, 2022

Fixes #884

Thanks for the report, @martynd! ❤️

@@ -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

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)?

Suggested change
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

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..)

Copy link
Member Author

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 😇

Copy link
Member Author

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 👀)

Choose a reason for hiding this comment

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

🤷 alright, you win 😂💜

Choose a reason for hiding this comment

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

No hard(link) feelings 🤣

@tianon tianon merged commit 2e83286 into docker-library:master Jul 11, 2022
@tianon tianon deleted the entrypoint-back-compat branch July 11, 2022 16:51
docker-library-bot added a commit to docker-library-bot/official-images that referenced this pull request Jul 11, 2022
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
BaurzhanSakhariev pushed a commit to crate/official-images that referenced this pull request Jul 18, 2022
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
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.

Dockerfile difference between revision releases
2 participants