Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Docker for Java/Spring developers

SingaSUG
September 09, 2015

Docker for Java/Spring developers

SingaSUG

September 09, 2015
Tweet

More Decks by SingaSUG

Other Decks in Technology

Transcript

  1. Agenda Application lifecycle using Docker : • Building • Testing

    • Deploying and a personal advertising campaign ;-)
  2. Building - Using language stacks docker run \ -v ~/.m2:/root/.m2

    \ -v $(pwd):/usr/src \ -w /usr/src \ maven:3.2-jdk-7 \ mvn clean install
  3. Testing - Using a custom image FROM tomcat:8 COPY ["target/*.war",

    "/usr/local/tomcat/webapps/"] CMD ["catalina.sh", "run"] $ docker build -t petclinic . $ docker run -d -P petclinic