Skip to content

Commit

Permalink
map each module individually in docker-compose
Browse files Browse the repository at this point in the history
the mapping of the entire module directory clobbered standard modules, so that's no good
  • Loading branch information
briskt committed May 24, 2024
1 parent c0caed4 commit f93cebf
Showing 1 changed file with 42 additions and 7 deletions.
49 changes: 42 additions & 7 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,12 @@ services:
- ./features:/data/features
- ./behat.yml:/data/behat.yml
- ./tests:/data/tests
- ./modules:/data/vendor/simplesamlphp/simplesamlphp/modules
- ./modules/mfa:/data/vendor/simplesamlphp/simplesamlphp/modules/mfa
- ./modules/expirychecker:/data/vendor/simplesamlphp/simplesamlphp/modules/expirychecker
- ./modules/profilereview:/data/vendor/simplesamlphp/simplesamlphp/modules/profilereview
- ./modules/silauth:/data/vendor/simplesamlphp/simplesamlphp/modules/silauth
- ./modules/sildisco:/data/vendor/simplesamlphp/simplesamlphp/modules/sildisco
- ./modules/material:/data/vendor/simplesamlphp/simplesamlphp/modules/material
command: ["/data/run-tests.sh"]

test-browser:
Expand Down Expand Up @@ -105,7 +110,12 @@ services:
- ./dockerbuild/run-metadata-tests.sh:/data/run-metadata-tests.sh

# Local modules
- ./modules:/data/vendor/simplesamlphp/simplesamlphp/modules
- ./modules/mfa:/data/vendor/simplesamlphp/simplesamlphp/modules/mfa
- ./modules/expirychecker:/data/vendor/simplesamlphp/simplesamlphp/modules/expirychecker
- ./modules/profilereview:/data/vendor/simplesamlphp/simplesamlphp/modules/profilereview
- ./modules/silauth:/data/vendor/simplesamlphp/simplesamlphp/modules/silauth
- ./modules/sildisco:/data/vendor/simplesamlphp/simplesamlphp/modules/sildisco
- ./modules/material:/data/vendor/simplesamlphp/simplesamlphp/modules/material
command: /data/run-debug.sh
ports:
- "80:80"
Expand Down Expand Up @@ -147,7 +157,12 @@ services:
- ./features:/data/features

# Local modules
- ./modules:/data/vendor/simplesamlphp/simplesamlphp/modules
- ./modules/mfa:/data/vendor/simplesamlphp/simplesamlphp/modules/mfa
- ./modules/expirychecker:/data/vendor/simplesamlphp/simplesamlphp/modules/expirychecker
- ./modules/profilereview:/data/vendor/simplesamlphp/simplesamlphp/modules/profilereview
- ./modules/silauth:/data/vendor/simplesamlphp/simplesamlphp/modules/silauth
- ./modules/sildisco:/data/vendor/simplesamlphp/simplesamlphp/modules/sildisco
- ./modules/material:/data/vendor/simplesamlphp/simplesamlphp/modules/material
command: >
bash -c "whenavail db 3306 60 /data/vendor/simplesamlphp/simplesamlphp/modules/silauth/lib/Auth/Source/yii migrate --interactive=0 &&
/data/run.sh"
Expand Down Expand Up @@ -195,7 +210,12 @@ services:
- ./development/UserPass.php:/data/vendor/simplesamlphp/simplesamlphp/modules/exampleauth/lib/Auth/Source/UserPass.php

# Local modules
- ./modules:/data/vendor/simplesamlphp/simplesamlphp/modules
- ./modules/mfa:/data/vendor/simplesamlphp/simplesamlphp/modules/mfa
- ./modules/expirychecker:/data/vendor/simplesamlphp/simplesamlphp/modules/expirychecker
- ./modules/profilereview:/data/vendor/simplesamlphp/simplesamlphp/modules/profilereview
- ./modules/silauth:/data/vendor/simplesamlphp/simplesamlphp/modules/silauth
- ./modules/sildisco:/data/vendor/simplesamlphp/simplesamlphp/modules/sildisco
- ./modules/material:/data/vendor/simplesamlphp/simplesamlphp/modules/material
ports:
- "8086:80"
environment:
Expand All @@ -222,7 +242,12 @@ services:
- ./development/idp3-local/metadata/saml20-sp-remote.php:/data/vendor/simplesamlphp/simplesamlphp/metadata/saml20-sp-remote.php

# Local modules
- ./modules:/data/vendor/simplesamlphp/simplesamlphp/modules
- ./modules/mfa:/data/vendor/simplesamlphp/simplesamlphp/modules/mfa
- ./modules/expirychecker:/data/vendor/simplesamlphp/simplesamlphp/modules/expirychecker
- ./modules/profilereview:/data/vendor/simplesamlphp/simplesamlphp/modules/profilereview
- ./modules/silauth:/data/vendor/simplesamlphp/simplesamlphp/modules/silauth
- ./modules/sildisco:/data/vendor/simplesamlphp/simplesamlphp/modules/sildisco
- ./modules/material:/data/vendor/simplesamlphp/simplesamlphp/modules/material
ports:
- "8087:80"
env_file:
Expand Down Expand Up @@ -252,7 +277,12 @@ services:
- ./dockerbuild/run-metadata-tests.sh:/data/run-metadata-tests.sh

# Local modules
- ./modules:/data/vendor/simplesamlphp/simplesamlphp/modules
- ./modules/mfa:/data/vendor/simplesamlphp/simplesamlphp/modules/mfa
- ./modules/expirychecker:/data/vendor/simplesamlphp/simplesamlphp/modules/expirychecker
- ./modules/profilereview:/data/vendor/simplesamlphp/simplesamlphp/modules/profilereview
- ./modules/silauth:/data/vendor/simplesamlphp/simplesamlphp/modules/silauth
- ./modules/sildisco:/data/vendor/simplesamlphp/simplesamlphp/modules/sildisco
- ./modules/material:/data/vendor/simplesamlphp/simplesamlphp/modules/material
ports:
- "8081:80"
environment:
Expand All @@ -278,7 +308,12 @@ services:
- ./development/sp2-local/metadata/saml20-idp-remote.php:/data/vendor/simplesamlphp/simplesamlphp/metadata/saml20-idp-remote.php

# Local modules
- ./modules:/data/vendor/simplesamlphp/simplesamlphp/modules
- ./modules/mfa:/data/vendor/simplesamlphp/simplesamlphp/modules/mfa
- ./modules/expirychecker:/data/vendor/simplesamlphp/simplesamlphp/modules/expirychecker
- ./modules/profilereview:/data/vendor/simplesamlphp/simplesamlphp/modules/profilereview
- ./modules/silauth:/data/vendor/simplesamlphp/simplesamlphp/modules/silauth
- ./modules/sildisco:/data/vendor/simplesamlphp/simplesamlphp/modules/sildisco
- ./modules/material:/data/vendor/simplesamlphp/simplesamlphp/modules/material
ports:
- "8082:80"
environment:
Expand Down

0 comments on commit f93cebf

Please sign in to comment.