From c43a57130601e63ccdd70b0dfd0a5d2bf5bef3a6 Mon Sep 17 00:00:00 2001 From: Syndamia Date: Wed, 18 Oct 2023 18:26:05 +0300 Subject: [CI] Added docker setup --- Year 3/Compilers, Introduction/coolc-spim/run.sh | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100755 Year 3/Compilers, Introduction/coolc-spim/run.sh (limited to 'Year 3/Compilers, Introduction/coolc-spim/run.sh') 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 -- cgit v1.3.1-26-gb76a