build.sh 649 B

12345678910111213141516171819202122232425262728293031
  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 atomjekylltemp2 "$1"
  12. #podman run \
  13. # --rm \
  14. # -it \
  15. # -p 4001:4000 \
  16. # -v "${1}:/srv/jekyll" \
  17. # -v "${1}/vendor/bundle:/usr/local/bundle" \
  18. # localhost/atomjekylltemp2 \
  19. # bundle --version
  20. podman run \
  21. --rm \
  22. -it \
  23. -v "${1}:/srv/jekyll" \
  24. -v "${1}/vendor/bundle:/usr/local/bundle" \
  25. localhost/atomjekylltemp2 \
  26. bundle --version
  27. #podman rmi localhost/atomjekylltemp_2