build.sh 466 B

1234567891011121314151617181920212223
  1. #!/usr/bin/env bash
  2. # build and deploy
  3. #podman build \
  4. # --rm \
  5. # -it \
  6. # -v "$PWD:/srv/jekyll" \
  7. # -v "$PWD/vendor/bundle:/usr/local/bundle" \
  8. # -u 1000:1001 \
  9. # jekyll:latest \
  10. # bundle update
  11. podman build -t atomjekylltemp "$1"
  12. podman run \
  13. --rm \
  14. -it \
  15. -p 4000:4000 \
  16. -v "${1}:/srv/jekyll" \
  17. -v "${1}/vendor/bundle:/usr/local/bundle" \
  18. localhost/atomjekylltemp \
  19. /bin/bash
  20. #podman rmi localhost/atomjekylltemp