My solutions to 2018's advent of code
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.

run.sh 273B

1234567891011121314
  1. #!/bin/bash
  2. IMAGE=csmith/aoc-2018-06
  3. docker image inspect $IMAGE >/dev/null 2>&1
  4. if [ $? -ne 0 ]
  5. then
  6. echo "One time setup: building docker image..."
  7. cd docker
  8. docker build . -t $IMAGE
  9. cd ..
  10. fi
  11. docker run --rm -it -v $(pwd):/code $IMAGE /entrypoint.sh $@