-
Notifications
You must be signed in to change notification settings - Fork 0
/
plot_docker.sh
executable file
·28 lines (23 loc) · 1.01 KB
/
plot_docker.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!/bin/bash
if [ -z "$1" ]; then
echo "Provide container: docker or podman"
exit
elif [ "$1" = "docker" ]; then
container="docker"
echo "Using docker"
elif [ "$1" = "podman" ]; then
container="podman"
echo "Using podman"
else
echo "Wrong container: provide docker or podman"
fi
echo "====================================================================================="
echo "================== Pulling the Docker image to create plots =================="
${container} pull docker.io/nisabostanci/comet-plots:latest
echo "================================================================================"
echo "================== Creating Plots =================="
pwd
${container} run --rm -v $PWD:/app/ docker.io/nisabostanci/comet-plots:latest /bin/bash -c "python3 -W ignore scripts/artifact/fast-forward/create_all_plots.py -r ae-results/"
echo "================================================================================"
echo "================== Plots and Results =================="
ls -l plots/