Arquivo da tag: Docker

Spring Boot with Docker

[code type=xml] com.spotify
docker-maven-plugin
0.4.13


greendogdelivery
frolvlad/alpine-oraclejdk8:slim
[“java”, “-jar”, “/${project.build.finalName}.jar”]
8080


/
${project.build.directory}
${project.build.finalName}.jar


Compilando e criando contêiner:

mvn -DskipTests clean package docker:build

Subindo o container:

docker run -p 8080:8080 greendogdelivery:latest

Ferramenta do Docker de gerenciamento de ferramenta:

docker run -d -p 9000:9000 -v /var/run/docker.sock:/var/run/docker.sock portainer/portainer