Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions core/scripts/init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,16 @@ printf "\n"
echo -e "${ORANGE}Send a PUSH in Manage, which pushes the entities to EngineBlock and OIDCNG ${VINKJE}"
docker compose exec managegui curl -q -s -k -u sysadmin:secret $manageurl/push >/dev/null

printf "\n"
echo -e "${ORANGE}Restarting managegui to reload Shibboleth SP metadata${NOCOLOR}"
docker compose restart managegui
echo -ne "Waiting for managegui to be ready..."
until docker compose exec managegui curl -s -o /dev/null -w '%{http_code}' http://localhost/ 2>/dev/null | grep -qE '^[^5]'; do
echo -n "."
sleep 1
done
echo -e " ${VINKJE}"

printf "\n"
echo -e "${BLUE}Please add the following line to your /etc/hosts: ${VINKJE}"
printf "\n"
Expand Down
1 change: 1 addition & 0 deletions core/start-dev-env.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ docker_compose_options=() # Array to hold the options for docker compose
docker_compose_options+=("-f")
docker_compose_options+=("${SCRIPT_DIR}/docker-compose.yml")
docker_compose_options+=("--profile" "oidc")
docker_compose_options+=("--profile" "test")

# Show help hint if no arguments are given
if [ $# -eq 0 ]; then
Expand Down
4 changes: 2 additions & 2 deletions core/stop-dev-env.sh
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#!/usr/bin/env bash

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

command='docker compose --profile oidc --profile extras --profile invite --profile php --profile dashboard --profile sbs -f docker-compose.yml down'
command="docker compose --profile oidc --profile test --profile extras --profile invite --profile php --profile dashboard --profile sbs -f docker-compose.yml down --remove-orphans $*"
echo "$command"
exec $command
8 changes: 4 additions & 4 deletions stepup/stop-dev-env.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env bash

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

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