|
@@ -58,7 +58,7 @@ pipeline {
|
|
|
steps {
|
|
|
echo "Run ${DOCKER_IMAGE} in server mode."
|
|
|
sh '''container_id_server=`docker run -d --rm -e "mode=server" \
|
|
|
- --privileged -p 1194:1194/tcp ${DOCKER_REGISTRY}/${DOCKER_IMAGE}:${BUILD_NUMBER}`
|
|
|
+ --privileged ${DOCKER_REGISTRY}/${DOCKER_IMAGE}:${BUILD_NUMBER}`
|
|
|
container_ip_server=`docker inspect ${container_id_server} --format='{{.NetworkSettings.IPAddress}}'`
|
|
|
container_id_client=`docker run -d --rm -e "mode=client" -e "server=${container_ip_server}" --privileged ${DOCKER_REGISTRY}/${DOCKER_IMAGE}:${BUILD_NUMBER}`
|
|
|
sleep 15
|