Skip to content
Snippets Groups Projects
Commit 26d4aad8 authored by Yaman Umuroglu's avatar Yaman Umuroglu
Browse files

[Docker] pass --init flag to docker for correct Vivado operation

parent eff3b2e6
No related branches found
No related tags found
No related merge requests found
......@@ -35,7 +35,7 @@ pipeline {
stage('Test') {
steps {
sh """
docker run --name $DOCKER_INST_NAME \
docker run --name $DOCKER_INST_NAME --init \
--hostname $DOCKER_INST_NAME \
-v ${params.VIVADO_PATH}:${params.VIVADO_PATH}:ro \
-e NUM_DEFAULT_WORKERS=${params.NUM_DEFAULT_WORKERS} \
......
......@@ -104,7 +104,9 @@ docker build -f docker/Dockerfile.finn_dev --tag=$DOCKER_TAG \
--build-arg NETRON_PORT=$NETRON_PORT \
.
# Launch container with current directory mounted
docker run -t --rm --name $DOCKER_INST_NAME -it \
# important to pass the --init flag here for correct Vivado operation, see:
# https://stackoverflow.com/questions/55733058/vivado-synthesis-hangs-in-docker-container-spawned-by-jenkins
docker run -t --rm --name $DOCKER_INST_NAME -it --init \
--hostname $DOCKER_INST_NAME \
-e "XILINX_VIVADO=$VIVADO_PATH" \
-e "SHELL=/bin/bash" \
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment