Skip to content

Commit

Permalink
merge actions-services.yml into docker-compose.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
briskt committed Jun 24, 2024
1 parent df9c54f commit 7fe0123
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 23 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/test-and-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,16 @@ jobs:
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Create env files
run: cp local.env.dist local.env && cp local.broker.env.dist local.broker.env
- name: test
run: docker compose -f actions-services.yml run test ./run-tests.sh
run: docker compose run test ./run-tests.sh
- name: check hub metadata for tests
run: docker compose -f actions-services.yml run ssp-hub.local ./run-metadata-tests.sh
run: docker compose run ssp-hub.local ./run-metadata-tests.sh
- name: check idp metadata for tests
run: docker compose -f actions-services.yml run ssp-idp1.local ./run-metadata-tests.sh
run: docker compose run ssp-idp1.local ./run-metadata-tests.sh
- name: check sp metadata for tests
run: docker compose -f actions-services.yml run ssp-sp1.local ./run-metadata-tests.sh
run: docker compose run ssp-sp1.local ./run-metadata-tests.sh

build-and-publish:
name: Build and Publish
Expand Down
30 changes: 11 additions & 19 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,15 +38,11 @@ services:
MYSQL_DATABASE: silauth
MYSQL_USER: silauth
MYSQL_PASSWORD: silauth
COMPOSER_CACHE_DIR: /composer
PROFILE_URL_FOR_TESTS: http://pwmanager.local/module.php/core/authenticate.php?as=ssp-hub
ADMIN_PASS: b
SECRET_SALT: abc123
IDP_NAME: x
volumes:
- ./composer.json:/data/composer.json
- ./composer.lock:/data/composer.lock
- ${COMPOSER_CACHE_DIR}:/composer
- ./dockerbuild/run-integration-tests.sh:/data/run-integration-tests.sh
- ./dockerbuild/run-metadata-tests.sh:/data/run-metadata-tests.sh
- ./dockerbuild/run-tests.sh:/data/run-tests.sh
Expand Down Expand Up @@ -77,21 +73,14 @@ services:
- ./installed-packages.json:/data/installed-packages.json
- ./development/update-composer-deps.sh:/data/update-composer-deps.sh
- ./vendor:/data/vendor
- ${COMPOSER_CACHE_DIR}:/composer
- composer-cache:/composer
env_file:
- ./local.env
environment:
COMPOSER_CACHE_DIR: /composer

ssp-hub.local:
build: .
depends_on:
- ssp-idp1.local
- ssp-idp2.local
- ssp-idp3.local
- ssp-sp1.local
- ssp-sp2.local
- ssp-sp3.local
volumes:
# Utilize custom certs
- ./development/hub/cert:/data/vendor/simplesamlphp/simplesamlphp/cert
Expand All @@ -118,7 +107,7 @@ services:
- "80:80"
environment:
ADMIN_PASS: "abc123"
SECRET_SALT: "h57fjemb&dn^nsJFGNjweJ"
SECRET_SALT: "not-secret-h57fjemb&dn^nsJFGNjweJ"
IDP_NAME: "Hub"
SECURE_COOKIE: "false"
SHOW_SAML_ERRORS: "true"
Expand Down Expand Up @@ -168,16 +157,16 @@ services:
- "8085:80"
environment:
ADMIN_PASS: "a"
SECRET_SALT: "h57fjemb&dn^nsJFGNjweJ"
SECRET_SALT: "not-secret-h57fjemb&dn^nsJFGNjweJ"
IDP_NAME: "IDP 1"
IDP_DOMAIN_NAME: "mfaidp"
ID_BROKER_ACCESS_TOKEN: "dummy"
ID_BROKER_ASSERT_VALID_IP: "false"
ID_BROKER_BASE_URI: "dummy"
ID_BROKER_TRUSTED_IP_RANGES: "192.168.0.1/8"
MFA_SETUP_URL: "http://pwmanager.local:8084/module.php/core/authenticate.php?as=ssp-hub-custom-port"
MFA_SETUP_URL: "http://pwmanager.local/module.php/core/authenticate.php?as=ssp-hub-custom-port"
REMEMBER_ME_SECRET: "12345"
PROFILE_URL: "http://pwmanager.local:8084/module.php/core/authenticate.php?as=ssp-hub-custom-port"
PROFILE_URL: "http://pwmanager.local/module.php/core/authenticate.php?as=ssp-hub-custom-port"
PROFILE_URL_FOR_TESTS: "http://pwmanager.local/module.php/core/authenticate.php?as=ssp-hub"
SECURE_COOKIE: "false"
SHOW_SAML_ERRORS: "true"
Expand Down Expand Up @@ -287,7 +276,7 @@ services:
ADMIN_EMAIL: "[email protected]"
ADMIN_PASS: "sp1"
IDP_NAME: "NA"
SECRET_SALT: "h57fjemb&dn^nsJFGNjweJz1"
SECRET_SALT: "not-secret-h57fjemb&dn^nsJFGNjweJz1"
SECURE_COOKIE: "false"
SHOW_SAML_ERRORS: "true"
SAML20_IDP_ENABLE: "false"
Expand Down Expand Up @@ -366,7 +355,7 @@ services:

# the broker and brokerDb containers are used by the silauth module
broker:
image: silintl/idp-id-broker:develop
image: silintl/idp-id-broker:latest
ports:
- "80"
depends_on:
Expand All @@ -389,7 +378,7 @@ services:
SUPPORT_EMAIL: "[email protected]"
EMAIL_SIGNATURE: "one red pill, please"
API_ACCESS_KEYS: "test-cli-abc123"
APP_ENV: "dev"
APP_ENV: "prod"
RP_ORIGINS: "https://ssp-idp1.local,https://ssp-idp3.local,https://ssp-idp3.local"
HIBP_CHECK_ON_LOGIN: "false"
MFA_TOTP_apiBaseUrl: dummy
Expand Down Expand Up @@ -462,3 +451,6 @@ networks:
config:
- subnet: 10.20.38.0/24
gateway: 10.20.38.1

volumes:
composer-cache: { }

0 comments on commit 7fe0123

Please sign in to comment.