docker-entrypoint.sh 694 B

1234567891011121314151617181920212223
  1. #!/bin/bash
  2. set -e
  3. echo ">>>>>>>>> $*"
  4. if [ "$*" != "jekyll new ." ]; then
  5. if [ ! -f Gemfile ]; then
  6. echo "NOTE: hmm, I don't see a Gemfile so I don't think there's a jekyll site here"
  7. echo "Either you didn't mount a volume, or you mounted it incorrectly."
  8. echo "Be sure you're in your jekyll site root and use something like this to launch"
  9. echo ""
  10. echo "docker run -p 80:4000 -v \$(pwd):/site bretfisher/jekyll-serve"
  11. echo ""
  12. echo "NOTE: To create a new site, you can use the sister image bretfisher/jekyll like:"
  13. echo ""
  14. echo "docker run -v \$(pwd):/site bretfisher/jekyll new ."
  15. exit 1
  16. fi
  17. bundle install --retry 5 --jobs 20
  18. fi
  19. exec "$@"