start-container.sh
1 #!/bin/bash 2 3 IMAGE_NAME="bubbleparticles/planar-sysimage" 4 5 # Check if the user directory exists 6 if [ ! -d "./user" ]; then 7 echo "Error: user directory not found in current working directory" 8 exit 1 9 fi 10 11 # Check if the strategies.toml file exists 12 if [ ! -f "./user/strategies.toml" ]; then 13 echo "Error: user/strategies.toml file not found" 14 exit 1 15 fi 16 17 podman run --rm \ 18 -v "$(pwd)/user:/planar/user" \ 19 "$IMAGE_NAME" \ 20 julia scripts/run.jl --planar Planar --config /planar/user/strategies.toml