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.

run.sh 277B

1234567891011121314
  1. #!/bin/bash
  2. IMAGE=csmith/aoc-2019-02
  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 $@