Skip to content

Commit

Permalink
fix: Revise Keycloak environment handling (#1061) (#1062)
Browse files Browse the repository at this point in the history
Fixes #1061

Signed-off-by: Thomas Darimont <[email protected]>
  • Loading branch information
thomasdarimont authored Jan 10, 2025
1 parent d649d8e commit f503965
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,8 @@ You can spin up a local developer environment via [Docker Compose](https://docs.
This will spin up a few containers for Keycloak, PostgreSQL, and OpenLDAP, which can be used for testing the provider.
This environment and its setup via `make local` is not intended for production use.

To stop the environment you can use the `make local-stop`. To remove the local environment use `make local-down`.

Note: The setup scripts require the [jq](https://stedolan.github.io/jq/) command line utility.

### Tests
Expand Down
9 changes: 9 additions & 0 deletions makefile
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,19 @@ run-debug:
dlv exec --listen=:58772 --accept-multiclient --headless "./terraform-provider-keycloak_$(VERSION)" -- -debug

local: deps user-federation-example
echo "Starting local Keycloak environment"
docker compose up --build -d
./scripts/wait-for-local-keycloak.sh
./scripts/create-terraform-client.sh

local-stop:
echo "Stopping local Keycloak environment"
docker compose stop

local-down:
echo "Destroying local Keycloak environment"
docker compose down

deps:
./scripts/check-deps.sh

Expand Down

0 comments on commit f503965

Please sign in to comment.