Skip to content
Open
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
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ PYTHON=3.12 LOWEST_DIRECT=true just test -k token

`uv.lock` pins the versions used for development and CI. Update it with `uv lock --upgrade`. CI also runs both suites weekly with `UPGRADE=true`, and opens an issue when that run or a push to main fails.

`just pdc up` downloads PDC's [`compose-ci.yml`](https://github.com/PhilanthropyDataCommons/service/blob/main/compose-ci.yml) and Keycloak realm from the service repo's main branch and starts the stack: the PDC API, Keycloak, Postgres, and S3. `just/patch_realm.py` adds the `kc-admin-api` scope the Keycloak sync needs, which the realm lacks; it warns once the realm defines it, and then should be deleted. CI starts the stack the same way. The integration tests reach Keycloak at `pdc-auth`, so add this line to `/etc/hosts`:
`just pdc up` downloads PDC's [`compose-ci.yml`](https://github.com/PhilanthropyDataCommons/service/blob/main/compose-ci.yml) and Keycloak realm from the service repo's main branch and starts the stack: the PDC API, Keycloak, Postgres, and S3. CI starts the stack the same way. The integration tests reach Keycloak at `pdc-auth`, so add this line to `/etc/hosts`:

```text
127.0.0.1 pdc-api pdc-auth pdc-s3
Expand Down
44 changes: 0 additions & 44 deletions just/patch_realm.py

This file was deleted.

3 changes: 1 addition & 2 deletions just/pdc.just
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,11 @@ compose := 'docker compose -f ' + cache + '/compose-ci.yml'
_default:
@just --list pdc --unsorted

# Fetch PDC's compose file and Keycloak realm, adding the admin API access the realm lacks
# Fetch PDC's compose file and Keycloak realm
fetch:
mkdir -p {{cache}}/keycloak
curl -fsSL {{base}}/compose-ci.yml -o {{cache}}/compose-ci.yml
curl -fsSL {{base}}/keycloak/realm.json -o {{cache}}/keycloak/realm.json
uv run --no-project python -I just/patch_realm.py {{cache}}/keycloak/realm.json

# Start the stack and wait until it is healthy
up: fetch
Expand Down