Skip to content

Commit

Permalink
Use script for running
Browse files Browse the repository at this point in the history
  • Loading branch information
charlottemach committed Dec 3, 2023
1 parent 9d34209 commit a3d1c0b
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 3 deletions.
6 changes: 3 additions & 3 deletions 2023/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

Attempting a different language every day again ... and again.

Each day can be run by adding the input as <day>.txt into the <day> folder and then using
```docker build -t <day> <day>/ && docker container run -it --rm <day>```
Each day can be run by adding the input as input.txt into the <day> folder and then running
```run.sh <day>```

E.g. ```docker build -t one one/ && docker container run -it --rm one```
E.g. ```run.sh one```

* 01 - Clojure
12 changes: 12 additions & 0 deletions 2023/run.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/bin/bash


if [ $# -ne 1 ]
then
echo "Usage: run.sh DAY"
exit 1
fi

DAY=$1

docker build -t $DAY $DAY/ && docker container run -it --rm $DAY

0 comments on commit a3d1c0b

Please sign in to comment.