Skip to content

Commit e656566

Browse files
authored
Merge pull request #51 from OpenConext/feature/fix-devconf
Fix devconf
2 parents 396b5ba + a9e7181 commit e656566

7 files changed

Lines changed: 46 additions & 169 deletions

File tree

core/docker-compose.yml

Lines changed: 30 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ services:
2929
- mujina-idp.dev.openconext.local
3030
- invite.dev.openconext.local
3131
- sbs.dev.openconext.local
32+
- spdashboard.dev.openconext.local
3233
hostname: haproxy.docker
3334

3435
mariadb:
@@ -62,19 +63,18 @@ services:
6263
- ./mongo/:/docker-entrypoint-initdb.d/
6364
- openconext_mongodb:/bitnami/mongodb
6465
healthcheck:
65-
test: ['CMD', 'true']
66-
# test:
67-
# [
68-
# "CMD",
69-
# "mongosh",
70-
# "-u",
71-
# "managerw",
72-
# "-p",
73-
# "secret",
74-
# "--eval",
75-
# "db.stats().ok",
76-
# "mongodb://127.0.0.1/manage",
77-
# ]
66+
test:
67+
[
68+
"CMD",
69+
"mongosh",
70+
"-u",
71+
"managerw",
72+
"-p",
73+
"secret",
74+
"--eval",
75+
"db.stats().ok",
76+
"mongodb://127.0.0.1/manage",
77+
]
7878
interval: 10s
7979
timeout: 10s
8080
retries: 3
@@ -114,6 +114,23 @@ services:
114114
coreconextdev:
115115
hostname: profile.docker
116116

117+
spdashboard:
118+
image: ghcr.io/surfnet/sp-dashboard/spdashboard:latest
119+
environment:
120+
APP_ENV: prod
121+
volumes:
122+
- ./:/config
123+
extra_hosts:
124+
- "host.docker.internal:host-gateway"
125+
networks:
126+
coreconextdev:
127+
hostname: spdashboard.docker
128+
depends_on:
129+
engine:
130+
condition: service_healthy
131+
mariadb:
132+
condition: service_healthy
133+
117134
mujina-idp:
118135
image: ghcr.io/openconext/mujina/mujina-idp:8.0.12
119136
volumes:

core/engine/docker-compose.override.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ services:
77
image: ghcr.io/openconext/openconext-basecontainers/${ENGINE_PHP_IMAGE:-php72-apache2-node14-composer2:latest}
88
volumes:
99
- ${ENGINE_CODE_PATH}:/var/www/html
10-
- ./engine/parameters.yml:/var/www/html/app/config/parameters.yml
1110
- ./engine/appconf.conf:/etc/apache2/sites-enabled/appconf.conf
1211
environment:
1312
- APP_ENV=${APP_ENV:-dev}

core/engine/parameters.yml

Lines changed: 0 additions & 151 deletions
This file was deleted.

core/scripts/spdashboard.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
"coin:signature_method": "http://www.w3.org/2001/04/xmldsig-more#rsa-sha256"
2222
},
2323
"allowedEntities": [],
24-
"metadataurl": "https://teams.test2.surfconext.nl/saml/metadata",
24+
"metadataurl": "https://teams.dev.surfconext.nl/saml/metadata",
2525
"revisionnote": "Initial import"
2626
}
2727
}

core/scripts/teams.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
"coin:signature_method": "http://www.w3.org/2001/04/xmldsig-more#rsa-sha256"
2121
},
2222
"allowedEntities": [],
23-
"metadataurl": "https://teams.test2.surfconext.nl/Shibboleth.sso/Metadata",
23+
"metadataurl": "https://teams.dev.surfconext.nl/Shibboleth.sso/Metadata",
2424
"revisionnote": "Initial import"
2525
}
2626
}
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
---
2+
services:
3+
spdashboard:
4+
image: ghcr.io/openconext/openconext-basecontainers/${SPDASHBOARD_PHP_IMAGE:-php82-apache2-node20-composer2:latest}
5+
volumes:
6+
- ${SPDASHBOARD_CODE_PATH}:/var/www/html
7+
environment:
8+
- APP_ENV=${APP_ENV:-dev}
9+
- APP_DEBUG=true
10+
extra_hosts:
11+
# Ensure that host.docker.internal is correctly defined on Linux
12+
- host.docker.internal:host-gateway

core/stop-dev-env.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@
33
# Use docker compose to start the environment but with the modified override file(s)
44
echo -e "Starting the dev environment with the following command:\n"
55

6-
echo -e "docker compose --profile oidc -f docker-compose.yml down\n"
7-
docker compose --profile oidc -f docker-compose.yml down
6+
echo -e "docker compose --profile \"*\" -f docker-compose.yml down\n"
7+
docker compose --profile "*" -f docker-compose.yml down

0 commit comments

Comments
 (0)