Skip to content

Commit

Permalink
build e docker funzionano out-of-the-box
Browse files Browse the repository at this point in the history
  • Loading branch information
mtrycz committed Dec 4, 2019
1 parent 70fd814 commit bce21a5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions run.sh
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
#!/usr/bin/env bash

mvn clean compile package spring-boot:run -Pprod -DskipTests -Dspring.profiles.active=native,showcase,test,swagger
mvn clean compile package -Pprod -DskipTests -Dspring.profiles.active=native,showcase,test,swagger

cp ./target/*.war ./target/app.war

docker build --file src/main/docker/showcase/Dockerfile -t docker.si.cnr.it/sprint-flows-showcase .

docker run docker.si.cnr.it/sprint-flows-showcase
docker run -p 8080:8080 docker.si.cnr.it/sprint-flows-showcase


2 changes: 1 addition & 1 deletion src/main/docker/showcase/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ EXPOSE 8099
WORKDIR /opt/

# https://spring.io/guides/gs/spring-boot-docker/#_containerize_it
ENTRYPOINT ["java","-Djava.security.egd=file:/dev/./urandom", "-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=8899", "-jar","/opt/app.war", "--spring.profiles.active","native,showcase,test,swagger" ]
ENTRYPOINT ["java","-Djava.security.egd=file:/dev/./urandom", "-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=8899", "-jar","/opt/app.war", "--spring.profiles.active=native,showcase,test,swagger" ]

0 comments on commit bce21a5

Please sign in to comment.