1
0

init.sh 396 B

12345678910111213141516171819
  1. #! /bin/sh
  2. echo "Running writefreely bootstrap"
  3. cp production/writefreely*.tar* bootstrap/
  4. pushd bootstrap
  5. docker build -t writefreely-bootstrap .
  6. docker run -it --rm -v ./data:/data writefreely-bootstrap
  7. if [ $? -ne 0 ]; then
  8. exit 1
  9. fi
  10. docker image rm writefreely-bootstrap # cleanup
  11. rm writefreely*.tar* # cleanup
  12. popd
  13. cp bootstrap/data/* production/
  14. pushd production
  15. docker compose build