Improve Docker installation (#152)

This commit is contained in:
Riccardo Graziosi
2022-09-15 17:15:12 +02:00
committed by GitHub
parent 6198d814d8
commit fd3665cce6
37 changed files with 218 additions and 333 deletions

View File

@@ -1,8 +0,0 @@
#!/bin/bash
# Exit immediately if a command exits with a non-zero status.
set -e
echo "Starting Astuto..."
docker compose up "$@"

View File

@@ -1,7 +0,0 @@
#!/bin/bash
# Exit immediately if a command exits with a non-zero status.
set -e
/bin/bash script/docker-update.sh
/bin/bash script/docker-run.sh

View File

@@ -1,15 +0,0 @@
#!/bin/bash
# Exit immediately if a command exits with a non-zero status.
set -e
echo "Starting update..."
echo "-> Docker image will be rebuilt if necessary"
echo "-> Database schema will be updated if necessary"
echo "-> Webpack will compile assets"
docker compose build
docker compose run --rm web yarn install # needed to avoid yarn integrity check fail
docker compose run --rm -e UPDATE=1 web
echo "Update completed."