Skip to content

Commit eeba27b

Browse files
committed
add local development of management gateway to README.md
1 parent 4603985 commit eeba27b

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

README.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -297,3 +297,19 @@ value will be selected.
297297
| `contentgrid.idp.client-id` | string | OAuth Client Id to initiate OpenID Connect authentication from the gateway |
298298
| `contentgrid.idp.secret` | string | OAuth Client Secret to initiate OpenID Connect authentication from the gateway |
299299

300+
## Local development for management gateway
301+
302+
You can run the gateway locally with the [contentgrid-compose project](https://github.com/xenit-eu/contentgrid-compose) by executing the following Gradle task:
303+
304+
```bash
305+
./gradlew consoleBootRun
306+
```
307+
308+
**Note:** you need to apply the following changes to contentgrid-compose:
309+
310+
* `compose.sh`: comment out `docker-compose.yml`
311+
* Comment out `gateway.environment` from `docker-compose-architect.yml`, `docker-compose-captain.yml`, `docker-compose-herald.yml`, `docker-compose-keycloak.yml` and `docker-compose-scribe.yml`
312+
* `docker-compose-captain.yml`: change port 8080 to 9080 in `CONTENTGRID_SERVER_NAME`, `CONTENTGRID_AUTHORIZATION_ENDPOINT` and `CONTENTGRID_AUTHORIZATION_PROFILE`
313+
* `docker-compose-console.yml`: change port 8080 to 9080 in `API_BASE_URL`
314+
* `docker-compose-herald.yml`: change port 8080 to 9080 in `CONTENTGRID_AUTHORIZATION_ENDPOINT`
315+
* `docker-compose-scribe.yml`: change port 8080 to 9080 in all urls of `SCRIBE_ALLOWLIST`

0 commit comments

Comments
 (0)