|
@@ -18,7 +18,7 @@ pipeline {
|
|
|
parameters {
|
|
|
string(
|
|
|
name: "mailto",
|
|
|
- defaultValue: "tomishinets.v@sdsys.ru",
|
|
|
+ defaultValue: "admin@sdsys.ru",
|
|
|
description: "Email which has to be notified."
|
|
|
)
|
|
|
}
|
|
@@ -94,10 +94,12 @@ pipeline {
|
|
|
'''
|
|
|
echo "Run containers in Prod-like"
|
|
|
sh '''export DOCKER_CERT_PATH=/run/secrets/swarm
|
|
|
- export DOCKER_HOST=tcp://dev-iru-swarm1.infoclinica.lan:2376 DOCKER_TLS_VERIFY=1
|
|
|
+ export DOCKER_HOST=tcp://${CLUSTER_NAME}:2376 DOCKER_TLS_VERIFY=1
|
|
|
+ export DOCKER_HOST=tcp://$(docker info -f '{{.Name}}'):2376 DOCKER_TLS_VERIFY=1
|
|
|
if [ !$(docker service ps -q ${DOCKER_IMAGE}) ];then
|
|
|
docker service create --replicas 2 \
|
|
|
--mount type=bind,source=/var/run/docker.sock,destination=/var/run/docker.sock \
|
|
|
+
|
|
|
--name ${SERVICE_NAME} ${DOCKER_REGISTRY}/${SERVICE_IMAGE}:1 -p 1194:1194 \
|
|
|
--privileged --security-opt seccomp=unconfined \
|
|
|
--tmpfs /run --tmpfs /run/lock -v /sys/fs/cgroup:/sys/fs/cgroup:ro \
|