Skip to content

Commit

Permalink
entrypoint tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
kian99 committed Aug 27, 2024
1 parent 90d54b9 commit 62a4d08
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ services:
db:
image: postgres
container_name: postgres
restart: always
restart: on-failure
ports:
- 5432:5432
environment:
Expand Down
4 changes: 2 additions & 2 deletions local/openfga/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,5 @@ wget -q -O - --header 'Content-Type: application/json' --header 'Authorization:
psql -Atx "$OPENFGA_DATASTORE_URI" -c "INSERT INTO store (id,name,created_at,updated_at) VALUES ('01GP1254CHWJC1MNGVB0WDG1T0','jimm',NOW(),NOW()) ON CONFLICT DO NOTHING;"
psql -Atx "$OPENFGA_DATASTORE_URI" -c "UPDATE authorization_model SET authorization_model_id = '01GP1EC038KHGB6JJ2XXXXCXKB' WHERE store = '01GP1254CHWJC1MNGVB0WDG1T0';"

# Keep container alive
tail -f /dev/null & trap 'kill %1' TERM ; wait
# Handle exit signals
trap 'kill %1' TERM ; wait
4 changes: 2 additions & 2 deletions local/vault/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -44,5 +44,5 @@ vault secrets enable -version=2 -path /jimm-kv kv
# This container is now healthy
touch /tmp/healthy

# Keep container alive
tail -f /dev/null & trap 'kill %1' TERM ; wait
# Handle exit signals
trap 'kill %1' TERM ; wait

0 comments on commit 62a4d08

Please sign in to comment.