-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.sh
More file actions
executable file
·38 lines (28 loc) · 765 Bytes
/
build.sh
File metadata and controls
executable file
·38 lines (28 loc) · 765 Bytes
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
#!/bin/bash
rm -f /tmp/grader-update.sh
touch /tmp/stopsubmit
cat << EOF > /tmp/grader-update.sh
#!/bin/bash
###############################################################################
# Delete all docker containers and images do:
docker rm \$(docker ps -a -q)
docker rmi \$(docker images -q)
docker system prune -a -f
###############################################################################
# Build the environments
pushd cs-base
./build.sh
popd
echo 'did it work cs-base?'
#read foo
pushd db-base
./build.sh
popd
echo 'did it work db-base?'
#read foo
rm -f /tmp/stopsubmit
EOF
chmod 755 /tmp/grader-update.sh
tmux attach -t grader
tmux new-session -s grader /tmp/grader-update.sh
tmux new-session -s grader 'cd ~/grader4 && ./run-in-loop.sh'