Mentions légales du service

Skip to content
Snippets Groups Projects
Commit f63d31f2 authored by BIGAUD Nathan's avatar BIGAUD Nathan
Browse files

Correcting `heart-uci/docker.sh`

parent a13253e5
No related branches found
No related tags found
1 merge request!46Draft: Docker deploy
#!/bin/bash #!/bin/bash
cd examples/heart-uci cd examples/heart-uci
# Write server script and run server container # Write server script and run server container
cat <<- EOF >> docker_server.sh cat <<- EOF > docker_server.sh
python gen_ssl.py python gen_ssl.py
python server.py 4 python server.py 4
EOF EOF
docker run -dt --network="host" --mount type=bind,source=$PWD,target=/experiment --name server --env script=./docker_server.sh declearn docker run -dt --network="host" --mount type=bind,source=$PWD,target=/experiment --name server --env script=./docker_server.sh registry.gitlab.inria.fr/magnet/declearn/declearn2:declearn-base
# Ensure server is done generating certificates
sleep 2
# Run client scripts and run containers # Run client scripts and run containers
for CLIENT in cleveland hungarian switzerland va for CLIENT in cleveland hungarian switzerland va
do do
cat <<- EOF >> docker_$CLIENT.sh cat <<- EOF > docker_$CLIENT.sh
python client.py $CLIENT python client.py $CLIENT
EOF EOF
docker run -dt --network=container:server --mount type=bind,source=$PWD,target=/experiment --name $CLIENT --env script=./docker_$CLIENT.sh declearn docker run -dt --network=container:server --mount type=bind,source=$PWD,target=/experiment --name $CLIENT --env script=./docker_$CLIENT.sh registry.gitlab.inria.fr/magnet/declearn/declearn2:declearn-base
done done
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