Skip to content

Add docker-ensure-installed.sh as an explicit entrypoint/symlink #971

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 30, 2025

Conversation

tianon
Copy link
Member

@tianon tianon commented Jun 9, 2025

This allows using the image as `docker run --mount ... wordpress docker-ensure-installed.sh` which will then *just* ensure WordPress is installed in the volume and exit (successfully).

The primary use case for this is an `initContainer` in Kubernetes.
@yosifkit
Copy link
Member

This seems good to me but feels a bit reactionary (though it has been a fairly common ask in the past). Should we let it wait a bit to give users time to express their 👍 or just go for it?

Just to link a few past requests:

@tianon
Copy link
Member Author

tianon commented Jun 10, 2025

One way to look at it is that all those requests have been sitting in the back of my head simmering such that the latest iteration of it felt like it was "finally time" 😅

@tianon tianon merged commit 97b58bf into docker-library:master Jun 30, 2025
18 checks passed
@tianon tianon deleted the docker-ensure-installed branch June 30, 2025 16:41
docker-library-bot added a commit to docker-library-bot/official-images that referenced this pull request Jun 30, 2025
Changes:

- docker-library/wordpress@97b58bf: Merge pull request docker-library/wordpress#971 from infosiftr/docker-ensure-installed
- docker-library/wordpress@447d7d6: Add `docker-ensure-installed.sh` as an explicit entrypoint/symlink
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.

Support running only the WordPress installation part from the entrypoint Argument check in docker-entrypoint.sh
2 participants