My blog
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.

12345678910
  1. #!/bin/bash
  2. if [ -z "$(docker ps | grep hugo)" ]; then
  3. exec docker run -it --rm --name hugo \
  4. -p 1313:1313 \
  5. -v $PWD:/opt/workdir \
  6. -u 0 \
  7. --entrypoint=/usr/local/bin/hugo hugo $@
  8. else
  9. exec docker exec -it hugo hugo $@
  10. fi