Skip to content

A container image meant to run one command on start, and another upon termination

License

Notifications You must be signed in to change notification settings

kilna/exitpoint

Repository files navigation

exitpoint

A container image to run an exitpoint.sh script upon termination

DockerHub kilna/exitpoint Docker Image Version Docker Image Size (tag) Docker Pulls Docker Stars

GitHub kilna/exitpoint GitHub forks GitHub watchers GitHub Repo stars

A docker image that runs an exitpoint.sh script when terminated.

Usage

This image is meant primarily to be a base image that will be derived from, see the example Dockerfiles.

Examples

Dockerfile ENV Variables

These should be set by ENV statements in your derived container's Dockerfile.

  • EXITPOINT - Sets the path of the exitpoint script. Defaults to /exitpoint.sh.
  • ENTRYPOINT - An optional entrypoint script to run by this base image's entrypoint script /exitpoint-entrypoint.sh.

Exit Point variables

These are environment variables that are available to your exitpoint script

  • CMD_EXIT - Contains the exit code as returned from the entrypoint + docker CMD.
  • SIGNAL - Contains the name of the signal received that caused it to be called.

Author

Kilna, Anthony [email protected]

About

A container image meant to run one command on start, and another upon termination

Resources

License

Stars

Watchers

Forks

Packages

No packages published