#!/bin/zsh # check number arguments if [[ $# -lt 1 ]]; then echo "configure_parallel.sh: needs one argument: " exit 1 fi # default config; user can replace DOCKER_NETWORK if desired. DOCKER_NETWORK="mallob-test" # config to match other scripts NODE_TYPE="worker" # summary echo "run_dist_worker.sh, running with" echo " node type: $NODE_TYPE" echo " docker network: $DOCKER_NETWORK" echo " docker image: $1:$NODE_TYPE" # Run docker image. See comments in run_parallel.sh # docker run -i --shm-size=32g --name $NODE_TYPE --network $DOCKER_NETWORK --entrypoint bash --rm -t $1:$NODE_TYPE -c "/competition/init_solver.sh; exec bash"