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.

19 lines
880 B

3 years ago
  1. #!/usr/bin/env bash
  2. DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
  3. cd $DIR
  4. unset DIR
  5. # WORKAROUND: Downgrade docker-compose version to match Ubuntu 18.04 default compose package
  6. echo "Patching docker-compose to match Ubuntu 18.04 compose package"
  7. sed -i 's|version: "3.7"|version: "3.3"|g' ../docker-compose.prod.yml
  8. sed -i 's^dockerfile: app/Dockerfile.prod^dockerfile: app/Dockerfile.prod\n image: doccano-app:custom^g' ../docker-compose.prod.yml
  9. sed -i 's^dockerfile: nginx/Dockerfile^dockerfile: nginx/Dockerfile\n image: doccano-nginx:custom^g' ../docker-compose.prod.yml
  10. docker-compose -f ../docker-compose.prod.yml pull
  11. docker-compose -f ../docker-compose.prod.yml build
  12. docker image save -o doccano-app.tar doccano-app:custom
  13. docker image save -o doccano-nginx.tar doccano-nginx:custom
  14. docker image save -o postgres.tar postgres:13.1-alpine