Cleaned Dockerfile CMD entrypoints to make it easier to extend or buil… by pathtofile · Pull Request #590 · sickcodes/Docker-OSX · GitHub
Skip to content

Cleaned Dockerfile CMD entrypoints to make it easier to extend or buil… - #590

Open
pathtofile wants to merge 2 commits into
sickcodes:masterfrom
pathtofile:clean-cmd-entrypoints
Open

Cleaned Dockerfile CMD entrypoints to make it easier to extend or buil…#590
pathtofile wants to merge 2 commits into
sickcodes:masterfrom
pathtofile:clean-cmd-entrypoints

Conversation

@pathtofile

Copy link
Copy Markdown

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.sh after your code, and optionally have some post-QEMU code after the VM has shut down.

@sickcodes

Copy link
Copy Markdown
Owner

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.

2 participants