Docker link : https://hub.docker.com/r/topinambours/template-docker
docker pull topinambours/template-docker
docker run topinambours/template-docker
To deploy with travis :
language: java
sudo: false
jdk:
- openjdk10
jobs:
include:
- stage: test
script:
- mvn test
- stage : deploy
script :
- docker build -t topinambours/template-docker .
- echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
- docker push topinambours/template-docker:latest
Travis-Ci Environment Variables : DOCKER_USERNAME , DOCKER_PASSWORD