From d656146bfb49166aa5ef1e072cdd28fd2bb7ee9b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=86=B7=E5=86=B7?= Date: Sat, 9 Nov 2019 10:44:45 +0800 Subject: [PATCH] :whale: Work about Docker. edit dockerfile add sleep --- docker-compose.yml | 10 ---------- pig-auth/Dockerfile | 2 +- pig-config/Dockerfile | 2 +- pig-upms/pig-upms-biz/Dockerfile | 2 +- pig-visual/pig-codegen/Dockerfile | 2 +- pig-visual/pig-monitor/Dockerfile | 2 +- 6 files changed, 5 insertions(+), 15 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index 9cc30459..ba7b006d 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -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 diff --git a/pig-auth/Dockerfile b/pig-auth/Dockerfile index e67a00e3..27027d27 100755 --- a/pig-auth/Dockerfile +++ b/pig-auth/Dockerfile @@ -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 diff --git a/pig-config/Dockerfile b/pig-config/Dockerfile index 258b05cd..b6f23d47 100755 --- a/pig-config/Dockerfile +++ b/pig-config/Dockerfile @@ -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 diff --git a/pig-upms/pig-upms-biz/Dockerfile b/pig-upms/pig-upms-biz/Dockerfile index 34c83e1c..55977753 100644 --- a/pig-upms/pig-upms-biz/Dockerfile +++ b/pig-upms/pig-upms-biz/Dockerfile @@ -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 diff --git a/pig-visual/pig-codegen/Dockerfile b/pig-visual/pig-codegen/Dockerfile index 4f7c052f..7e5d05f1 100755 --- a/pig-visual/pig-codegen/Dockerfile +++ b/pig-visual/pig-codegen/Dockerfile @@ -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 diff --git a/pig-visual/pig-monitor/Dockerfile b/pig-visual/pig-monitor/Dockerfile index abcaf4f7..9f849191 100755 --- a/pig-visual/pig-monitor/Dockerfile +++ b/pig-visual/pig-monitor/Dockerfile @@ -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