summaryrefslogtreecommitdiffstats
path: root/run.sh
blob: 1ef55645dc225c5702ef377ec060bd8402f333c4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
#!/bin/sh

if [ "$1" == "chall" ]; then
	pushd chall
	docker build -t cscg22-gearboy-chall .
	docker run --name "cscg22-gearboy-chall-$$" --net=host -it cscg22-gearboy-chall
else
	pushd server
	docker build -t cscg22-gearboy-testserver .
	docker run --name "cscg22-gearboy-testserver-$$" --net=host -it cscg22-gearboy-testserver
fi