|
@@ -99,7 +99,7 @@ pipeline {
|
|
if [ -z $(docker service ps -q ${DOCKER_IMAGE}) ];then
|
|
if [ -z $(docker service ps -q ${DOCKER_IMAGE}) ];then
|
|
docker service create --replicas 1 \
|
|
docker service create --replicas 1 \
|
|
--mount type=bind,source=/var/run/docker.sock,destination=/var/run/docker.sock \
|
|
--mount type=bind,source=/var/run/docker.sock,destination=/var/run/docker.sock \
|
|
- --name ${SERVICE_NAME} ${DOCKER_REGISTRY}/${SERVICE_IMAGE}:1 -p 1194:1194 \
|
|
|
|
|
|
+ --name ${SERVICE_NAME} ${DOCKER_REGISTRY}/${SERVICE_IMAGE}:2 -p 1194:1194 \
|
|
--privileged --security-opt seccomp=unconfined \
|
|
--privileged --security-opt seccomp=unconfined \
|
|
--tmpfs /run --tmpfs /run/lock -v /sys/fs/cgroup:/sys/fs/cgroup:ro \
|
|
--tmpfs /run --tmpfs /run/lock -v /sys/fs/cgroup:/sys/fs/cgroup:ro \
|
|
-e "mode=server" ${DOCKER_REGISTRY}/${DOCKER_IMAGE}:${BUILD_NUMBER}
|
|
-e "mode=server" ${DOCKER_REGISTRY}/${DOCKER_IMAGE}:${BUILD_NUMBER}
|