-
Notifications
You must be signed in to change notification settings - Fork 210
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Increase wait time for initialisation to cover slow devices (#1274)
- Loading branch information
Showing
6 changed files
with
37 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,16 @@ | ||
#! /usr/bin/env bash | ||
|
||
if [ -f db/ciso-assistant.sqlite3 ] ; then | ||
echo "the database seems already created" | ||
echo "you should launch docker compose -f docker-compose-remote.yml up -d" | ||
echo "for clean start, you can remove the database file, run docker compose down and then docker compose rm and start again" | ||
if [ -f db/ciso-assistant.sqlite3 ]; then | ||
echo "the database seems already created" | ||
echo "you should launch docker compose -f docker-compose-remote.yml up -d" | ||
echo "for clean start, you can remove the database file, run docker compose down and then docker compose rm and start again" | ||
else | ||
docker rmi ghcr.io/intuitem/ciso-assistant-community/backend:latest ghcr.io/intuitem/ciso-assistant-community/frontend:latest 2> /dev/null | ||
docker compose -f docker-compose-remote.yml up -d | ||
echo "Giving some time for the database to be ready, please wait ..." | ||
sleep 20 | ||
echo "initialize your superuser account..." | ||
docker compose exec backend poetry run python manage.py createsuperuser | ||
echo "connect to ciso assistant on https://cool-vm:8443" | ||
echo "for successive runs you can now use docker compose up" | ||
docker rmi ghcr.io/intuitem/ciso-assistant-community/backend:latest ghcr.io/intuitem/ciso-assistant-community/frontend:latest 2>/dev/null | ||
docker compose -f docker-compose-remote.yml up -d | ||
echo "Giving some time for the database to be ready, please wait ..." | ||
sleep 50 | ||
echo "initialize your superuser account..." | ||
docker compose exec backend poetry run python manage.py createsuperuser | ||
echo "connect to ciso assistant on https://cool-vm:8443" | ||
echo "for successive runs you can now use docker compose up" | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,16 @@ | ||
#! /usr/bin/env bash | ||
|
||
if [ -f db/ciso-assistant.sqlite3 ] ; then | ||
echo "the database seems already created" | ||
echo "you should launch docker compose up -d" | ||
echo "for clean start, you can remove the database file, run docker compose down and then docker compose rm and start again" | ||
if [ -f db/ciso-assistant.sqlite3 ]; then | ||
echo "the database seems already created" | ||
echo "you should launch docker compose up -d" | ||
echo "for clean start, you can remove the database file, run docker compose down and then docker compose rm and start again" | ||
else | ||
docker rmi ghcr.io/intuitem/ciso-assistant-community/backend:latest ghcr.io/intuitem/ciso-assistant-community/frontend:latest 2> /dev/null | ||
docker compose up -d | ||
echo "Giving some time for the database to be ready, please wait ..." | ||
sleep 30 | ||
echo "initialize your superuser account..." | ||
docker compose exec backend poetry run python manage.py createsuperuser | ||
echo "connect to ciso assistant on https://localhost:8443" | ||
echo "for successive runs you can now use docker compose up" | ||
docker rmi ghcr.io/intuitem/ciso-assistant-community/backend:latest ghcr.io/intuitem/ciso-assistant-community/frontend:latest 2>/dev/null | ||
docker compose up -d | ||
echo "Giving some time for the database to be ready, please wait (1 mn) ..." | ||
sleep 50 | ||
echo "initialize your superuser account..." | ||
docker compose exec backend poetry run python manage.py createsuperuser | ||
echo "connect to ciso assistant on https://localhost:8443" | ||
echo "for successive runs you can now use docker compose up" | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters