Skip to content

Commit

Permalink
run database migrations on idp1
Browse files Browse the repository at this point in the history
  • Loading branch information
briskt committed May 14, 2024
1 parent c185677 commit 3ffdf5d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 4 additions & 1 deletion actions-services.yml
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,10 @@ services:

# Include the features folder (for the FakeIdBrokerClient class)
- ./features:/data/features
command: 'bash -c "/data/enable-exampleauth-module.sh && /data/run.sh"'
command: >
bash -c "whenavail db 3306 60 /data/vendor/simplesamlphp/simplesamlphp/modules/silauth/lib/Auth/Source/yii migrate --interactive=0 &&
/data/enable-exampleauth-module.sh &&
/data/run.sh"
environment:
ADMIN_EMAIL: "[email protected]"
ADMIN_PASS: "a"
Expand Down
5 changes: 4 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,10 @@ services:
- ./modules/expirychecker:/data/vendor/simplesamlphp/simplesamlphp/modules/expirychecker
- ./modules/profilereview:/data/vendor/simplesamlphp/simplesamlphp/modules/profilereview
- ./modules/silauth:/data/vendor/simplesamlphp/simplesamlphp/modules/silauth
command: 'bash -c "/data/enable-exampleauth-module.sh && /data/run.sh"'
command: >
bash -c "whenavail db 3306 60 /data/vendor/simplesamlphp/simplesamlphp/modules/silauth/lib/Auth/Source/yii migrate --interactive=0 &&
/data/enable-exampleauth-module.sh &&
/data/run.sh"
ports:
- "8085:80"
environment:
Expand Down

0 comments on commit 3ffdf5d

Please sign in to comment.