-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsetupContainer.sh
More file actions
executable file
·33 lines (24 loc) · 934 Bytes
/
setupContainer.sh
File metadata and controls
executable file
·33 lines (24 loc) · 934 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
#!/bin/bash
echo =======================================
echo = ZombieVerter Docker Container Setup =
echo =======================================
echo Stopping and removing any old containers which might still be present.
echo This will delete any changes made outside of the /app folder!
echo "Close this window if you want to make any changes before (re-)installation!"
pause
echo
echo This might take a short while...
echo
docker stop ZombieContainer
docker rm ZombieContainer
echo
echo Beginning the setup for the new container image.
echo "This can take 10-30 minutes."
echo
docker build -t zombiebuild:latest .
echo
echo "Create persistent folder for the code to be stored in..."
echo
mkdir -p code
docker run -t -d --name ZombieContainer --mount type=bind,source="$(pwd)"/code,target=/app zombiebuild:latest
docker exec -t --workdir /app ZombieContainer sh -c "git clone https://github.com/damienmaguire/Stm32-vcu"