🐳 Work about Docker. edit dockerfile add sleep

This commit is contained in:
冷冷 2019-11-09 10:44:45 +08:00
parent 6441ad26b4
commit d656146bfb
6 changed files with 5 additions and 15 deletions

View File

@ -88,13 +88,3 @@ services:
container_name: pig-codegen
hostname: pig-codegen
image: pig-codegen
pig-zipkin:
build:
context: ./
dockerfile: ./pig-visual/pig-zipkin/Dockerfile
restart: always
image: pig-zipkin
container_name: pig-zipkin
ports:
- 5002:5002

View File

@ -12,4 +12,4 @@ EXPOSE 3000
ADD ./pig-auth/target/pig-auth.jar ./
CMD java -Djava.security.egd=file:/dev/./urandom -jar pig-auth.jar
CMD sleep 60;java -Djava.security.egd=file:/dev/./urandom -jar pig-auth.jar

View File

@ -12,4 +12,4 @@ EXPOSE 4001
ADD ./pig-config/target/pig-config.jar ./
CMD java -Djava.security.egd=file:/dev/./urandom -jar pig-config.jar
CMD sleep 20;java -Djava.security.egd=file:/dev/./urandom -jar pig-config.jar

View File

@ -12,4 +12,4 @@ EXPOSE 4000
ADD ./pig-upms/pig-upms-biz/target/pig-upms-biz.jar ./
CMD java -Djava.security.egd=file:/dev/./urandom -jar pig-upms-biz.jar
CMD sleep 60;java -Djava.security.egd=file:/dev/./urandom -jar pig-upms-biz.jar

View File

@ -12,4 +12,4 @@ EXPOSE 5003
ADD ./pig-visual/pig-codegen/target/pig-codegen.jar ./
CMD java -Djava.security.egd=file:/dev/./urandom -jar pig-codegen.jar
CMD sleep 60;java -Djava.security.egd=file:/dev/./urandom -jar pig-codegen.jar

View File

@ -12,4 +12,4 @@ EXPOSE 5001
ADD ./pig-visual/pig-monitor/target/pig-monitor.jar ./
CMD java -Djava.security.egd=file:/dev/./urandom -jar pig-monitor.jar
CMD sleep 60;java -Djava.security.egd=file:/dev/./urandom -jar pig-monitor.jar