Skip to content

Instantly share code, notes, and snippets.

@nebhale
Last active June 17, 2020 19:31
Show Gist options
  • Save nebhale/046059360735fb684b7d23d1e89674ab to your computer and use it in GitHub Desktop.
Save nebhale/046059360735fb684b7d23d1e89674ab to your computer and use it in GitHub Desktop.

case 1: default process-type

docker run ekcasey/petclinic:launcher-poc

case 1: default process-type + args

docker run ekcasey/petclinic:launcher-poc --spring.profiles.active=mysql --my.property='${PATH}'

case 3: set a process-type (works w/ and w/o args)

docker run --entrypoint executable-jar ekcasey/petclinic:launcher-poc --spring.profiles.active=mysql

case 4: custom process w/ launch envrionment

docker run --entrypoint launcher -it ekcasey/petclinic:launcher-poc bash

case 5: custom direct process w/ launch envrionment

docker run --entrypoint launcher ekcasey/petclinic:launcher-poc -- env

case 6: custom process w/o launch environment

docker run --entrypoint bash -it ekcasey/petclinic:launcher-poc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment