mirror of
https://github.com/sickcodes/Docker-OSX.git
synced 2026-01-11 21:10:25 +01:00
[PR #590] Cleaned Dockerfile CMD entrypoints to make it easier to extend or buil… #783
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/sickcodes/Docker-OSX/pull/590
Author: @pathtofile
Created: 12/12/2022
Status: 🔄 Open
Base:
master← Head:clean-cmd-entrypoints📝 Commits (2)
d380dd1Cleaned Dockerfile CMD entrypoint to make it easier to extend or build on top of built image3004d74Made all entrypoint scripts the same name inside the container image📊 Changes
10 files changed (+243 additions, -223 deletions)
View changed files
📝
Dockerfile(+2 -32)📝
Dockerfile.auto(+2 -63)📝
Dockerfile.monterey(+2 -32)📝
Dockerfile.naked(+2 -36)📝
Dockerfile.naked-auto(+2 -60)➕
entrypoint.auto.sh(+65 -0)➕
entrypoint.monterey.sh(+34 -0)➕
entrypoint.naked-auto.sh(+62 -0)➕
entrypoint.naked.sh(+38 -0)➕
entrypoint.sh(+34 -0)📄 Description
Cleaned Dockerfile CMD entrypoints to make it easier to extend or build on top of built image.
In some situations you might want to run extra setup inside the container prior to qemu, or build on top of the built docker image using e.g.
FROM sickcodes/docker-osx:naked.Without this PR, when you change the CMD you'd need to also re-implement all of the checks and setup done by the original CMD.
With this PR, you can first call your own script first, then call
bash -c entrypoint.shafter your code, and optionally have some post-QEMU code after the VM has shut down.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.