Skip to content

Commit 578bc54

Browse files
authored
Merge pull request #90 from OpenConext/feature/fix-issues
Improve / fix start/stop scripts
2 parents 68cc3b2 + 2d0d39e commit 578bc54

4 files changed

Lines changed: 17 additions & 6 deletions

File tree

core/scripts/init.sh

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,16 @@ printf "\n"
114114
echo -e "${ORANGE}Send a PUSH in Manage, which pushes the entities to EngineBlock and OIDCNG ${VINKJE}"
115115
docker compose exec managegui curl -q -s -k -u sysadmin:secret $manageurl/push >/dev/null
116116

117+
printf "\n"
118+
echo -e "${ORANGE}Restarting managegui to reload Shibboleth SP metadata${NOCOLOR}"
119+
docker compose restart managegui
120+
echo -ne "Waiting for managegui to be ready..."
121+
until docker compose exec managegui curl -s -o /dev/null -w '%{http_code}' http://localhost/ 2>/dev/null | grep -qE '^[^5]'; do
122+
echo -n "."
123+
sleep 1
124+
done
125+
echo -e " ${VINKJE}"
126+
117127
printf "\n"
118128
echo -e "${BLUE}Please add the following line to your /etc/hosts: ${VINKJE}"
119129
printf "\n"

core/start-dev-env.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ docker_compose_options=() # Array to hold the options for docker compose
3434
docker_compose_options+=("-f")
3535
docker_compose_options+=("${SCRIPT_DIR}/docker-compose.yml")
3636
docker_compose_options+=("--profile" "oidc")
37+
docker_compose_options+=("--profile" "test")
3738

3839
# Show help hint if no arguments are given
3940
if [ $# -eq 0 ]; then

core/stop-dev-env.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
#!/usr/bin/env bash
22

3-
# Use docker compose to start the environment but with the modified override file(s)
3+
# Use docker compose to stop the environment.
44
echo -e "Stopping the dev environment with the following command:\n"
55

6-
command='docker compose --profile oidc --profile extras --profile invite --profile php --profile dashboard --profile sbs -f docker-compose.yml down'
6+
command="docker compose --profile oidc --profile test --profile extras --profile invite --profile php --profile dashboard --profile sbs -f docker-compose.yml down --remove-orphans $*"
77
echo "$command"
88
exec $command

stepup/stop-dev-env.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/usr/bin/env bash
22

3-
# Use docker compose to start the environment but with the modified override file(s)
4-
echo -e "Starting the dev environment with the following command:\n"
3+
# Use docker compose to stop the environment.
4+
echo -e "Stopping the dev environment with the following command:\n"
55

6-
echo -e "docker compose --profile smoketest -f docker-compose.yml down\n"
7-
docker compose --profile smoketest -f docker-compose.yml down
6+
echo -e "docker compose --profile smoketest -f docker-compose.yml down --remove-orphans $*\n"
7+
docker compose --profile smoketest -f docker-compose.yml down --remove-orphans $*

0 commit comments

Comments
 (0)