forked from INGInious/containers
-
Notifications
You must be signed in to change notification settings - Fork 0
/
clean-build-main-containers.sh
executable file
·51 lines (41 loc) · 2.17 KB
/
clean-build-main-containers.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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
#!/usr/bin/env bash
set -e
grading=("datascience" "notebook" "multilang")
for container in "${grading[@]}"; do
echo "-------------------------------------------------------"
echo "- Destroying grading image: " "$container"
echo "-------------------------------------------------------"
docker rmi -f ingi/inginious-c-"$container"
done
echo "-------------------------------------------------------"
echo "- Destroying grading image: hdl"
echo "-------------------------------------------------------"
docker rmi -f ingi/hdl-uncode
echo "-------------------------------------------------------"
echo "- Destroying grading image: uncode-c-base"
echo "-------------------------------------------------------"
docker rmi -f unjudge/uncode-c-base
echo "-------------------------------------------------------"
echo "- Building grading image: uncode-c-base"
echo "-------------------------------------------------------"
docker build -t "unjudge/uncode-c-base" "grading/uncode"
echo "-------------------------------------------------------"
echo "- Building grading image: hdl"
echo "-------------------------------------------------------"
docker build -t "ingi/hdl-uncode" "grading/hdl"
echo "-------------------------------------------------------"
echo "- Building grading image: multilang"
echo "-------------------------------------------------------"
docker build -t "ingi/inginious-c-multilang" -t "unjudge/inginious-c-multilang" "grading/multilang"
echo "-------------------------------------------------------"
echo "- Building grading image: notebook"
echo "-------------------------------------------------------"
docker build -t "ingi/inginious-c-notebook" "grading/notebook"
echo "-------------------------------------------------------"
echo "- Building grading image: data_science"
echo "-------------------------------------------------------"
docker build -t "ingi/inginious-c-datascience" "grading/data_science"
echo "-------------------------------------------------------"
echo "- Destroying grading image unjudge/inginious-c-multilang used to build data_science"
echo "-------------------------------------------------------"
docker rmi -f unjudge/inginious-c-multilang