Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OZ-331: Add a SENAITE and Keycloak restore profiles #137

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions docker-compose-restore-sso.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
services:
keycloak:
depends_on:
restore:
condition: service_completed_successfully
profiles:
- keycloak-restore
12 changes: 12 additions & 0 deletions docker-compose-restore.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,18 @@ services:
condition: service_completed_successfully
profiles:
- odoo-restore
senaite:
depends_on:
restore:
condition: service_completed_successfully
profiles:
- senaite-restore
keycloak:
depends_on:
restore:
condition: service_completed_successfully
profiles:
- keycloak-restore
backup:
depends_on:
restore:
Expand Down
6 changes: 6 additions & 0 deletions scripts/utils.sh
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,12 @@ function setDockerComposeCLIOptions () {
export dockerComposeFilesCLIOptions="$dockerComposeFilesCLIOptions -f ../docker-compose-restore.yml"
fi

# Add docker-compose-restore-sso.yml file to prevent Keycloak from being started before the restore

if [ "$RESTORE" == "true" ] && [ "$ENABLE_SSO" == "true" ]; then
export dockerComposeFilesCLIOptions="$dockerComposeFilesCLIOptions -f ../docker-compose-restore-sso.yml"
fi

# Set the default env file
export dockerComposeEnvFilePath="../.env"

Expand Down
Loading