Summary Files Commits Branches @commit @diff @stats
path: root / Year 3 / Compilers, Introduction / coolc-spim / run.sh
diff options
context:
space:
mode:
Commitc43a57130601e63ccdd70b0dfd0a5d2bf5bef3a6 (patch)
Author
 Syndamia <kamen@syndamia.com>
2023-10-18 18:26:05 +0300
Committer
 Syndamia <kamen@syndamia.com>
2023-10-18 18:26:05 +0300
Filesc47c0efa808971c2569bb6ed25707747853b380e /Year 3/Compilers, Introduction/coolc-spim/run.sh
uni-projects-c43a57130601e63ccdd70b0dfd0a5d2bf5bef3a6.tar
uni-projects-c43a57130601e63ccdd70b0dfd0a5d2bf5bef3a6.tar.gz
uni-projects-c43a57130601e63ccdd70b0dfd0a5d2bf5bef3a6.zip
Parent3ba593c0c4da762969a48a5c89c4a096e93680a5 (diff)
[CI] Added docker setup
1 files changed, 9 insertions, 0 deletions
-rwxr-xr-xYear 3/Compilers, Introduction/coolc-spim/run.sh9
diff --git a/Year 3/Compilers, Introduction/coolc-spim/run.sh b/Year 3/Compilers, Introduction/coolc-spim/run.sh
new file mode 100755
index 0000000..d0eff12
--- /dev/null
+++ b/Year 3/Compilers, Introduction/coolc-spim/run.sh
@@ -0,0 +1,9 @@
+#!/bin/bash
+set -x
+
+printf "\033[1;32mMake sure dockerd is running before running this script.\n\033[00m"
+pushd docker-container
+docker build . -t coolc-spim
+popd
+docker run --name coolc-spim -v $(pwd)/class-code:/usr/class -v $(pwd)/my-code:/usr/code -d coolc-spim tail -f /dev/null
+docker exec -it coolc-spim bash