Skip to content

Commit

Permalink
feat: upgrade Camunda Run sample to Keycloak 21.1.1
Browse files Browse the repository at this point in the history
(cherry picked from commit 9e4c4d4)
  • Loading branch information
VonDerBeck committed Aug 28, 2023
1 parent d36aead commit 4b0ac89
Show file tree
Hide file tree
Showing 7 changed files with 69 additions and 9 deletions.
6 changes: 3 additions & 3 deletions examples/run/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,9 @@ Within the subdirectory `docker` you'll find a basic sample consisting of:

Usage:

1. ``docker-compose build``
2. ``docker-compose up -d``
1. ``docker compose build``
2. ``docker compose up -d``
3. Login at ``http://localhost:8080`` using ``camunda`` / ``camunda1!`` and use Cockpit / Tasklist / Admin.
4. Keycloak is available under ``https://localhost:9001``. Login with ``keycloak`` / ``keycloak1!``.
4. Keycloak is available under ``https://localhost:9001/auth``. Login with ``keycloak`` / ``keycloak1!``.

**Beware**: This is not production ready, still using a H2 database for each of the instances, but might help you to understand the configuration basics.
4 changes: 2 additions & 2 deletions examples/run/docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# Get Camunda-run as base image
FROM camunda/camunda-bpm-platform:run-7.18.0
FROM camunda/camunda-bpm-platform:run-7.19.0

# The Version of the Keycloak Identity Provider to use
ENV IDENTITY_PROVIDER_VERSION=7.18.0
ENV IDENTITY_PROVIDER_VERSION=7.19.0

# Add Keycloak Identity Provider
USER camunda
Expand Down
10 changes: 9 additions & 1 deletion examples/run/docker/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,21 @@ version: '3.9'
services:

keycloak:
image: gunnaraccso/keycloak.server:14.0.0
image: gunnaraccso/keycloak.server:21.1.1
restart: always
env_file:
- ./env/keycloak.env
ports:
- "9001:8443"
- "9000:8080"
command:
- start-dev
- --features admin-fine-grained-authz
- --https-certificate-file=/keycloak/config/ssl/cert.pem
- --https-certificate-key-file=/keycloak/config/ssl/key.pem
volumes:
- ./ssl/cert.pem:/keycloak/config/ssl/cert.pem
- ./ssl/key.pem:/keycloak/config/ssl/key.pem

camunda:
build: .
Expand Down
2 changes: 1 addition & 1 deletion examples/run/docker/env/camunda.env
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
KEYCLOAK_HOST=https://keycloak:8443
KEYCLOAK_REALM=camunda
KEYCLOAK_CLIENT_ID=camunda-identity-service
KEYCLOAK_CLIENT_SECRET=cbee1434-7e4d-4d85-bab6-5944b427a3c0
KEYCLOAK_CLIENT_SECRET=GBLb9KSRxmmo81SIGH2BWu3GEtrofvWo
WAIT_FOR=keycloak:8080
WAIT_FOR_TIMEOUT=60
6 changes: 4 additions & 2 deletions examples/run/docker/env/keycloak.env
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
TZ=Europe/Berlin
KEYCLOAK_USER=keycloak
KEYCLOAK_PASSWORD=keycloak1!
DB_VENDOR=h2
KEYCLOAK_ADMIN=keycloak
KEYCLOAK_ADMIN_PASSWORD=keycloak1!
KC_HTTP_RELATIVE_PATH=/auth
22 changes: 22 additions & 0 deletions examples/run/docker/ssl/cert.pem
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
-----BEGIN CERTIFICATE-----
MIIDmzCCAoOgAwIBAgIUZTfTJB+dQDYuGHPzKvzNSR2dc/IwDQYJKoZIhvcNAQEL
BQAwXDELMAkGA1UEBhMCREUxDzANBgNVBAgMBkhlc3NlbjESMBAGA1UEBwwJRGFy
bXN0YWR0MSgwJgYDVQQKDB9LZXljbG9hayBJZGVudGl0eSBQcm92aWRlciBUZXN0
MCAXDTIzMDgyODEyMzcxNVoYDzIwNTEwMTEzMTIzNzE1WjBcMQswCQYDVQQGEwJE
RTEPMA0GA1UECAwGSGVzc2VuMRIwEAYDVQQHDAlEYXJtc3RhZHQxKDAmBgNVBAoM
H0tleWNsb2FrIElkZW50aXR5IFByb3ZpZGVyIFRlc3QwggEiMA0GCSqGSIb3DQEB
AQUAA4IBDwAwggEKAoIBAQDELUQ/KvLjskGsVFzXQouwmQnKLOv2IPHo74nGPpsn
+K3f1sD1NM429pGrXDC2BBXQxvhDhThHbeylXDgi4z0WSEbRWQVdcbB0ilCRe2ph
fgdqVyTherRNciYX8tujWhSH6wp9uCgcPO072syewxYkshwQEduzSUUIVwHcWrEM
l4R2Dr6EpYrb8bAm64YJ0xd91lKyLnFntTKegLkM+JpObK0cptWbhdObFn36HzEz
Uw41T57sYwCSlSjqr4wU3yyXXyJLrcVqtYJsaVQr293ktt0lsVSJAkVfj2qQBaQI
2XgRCETXNhJbm0AsYokPGugK9OFJom1v52LzaS7rUXM9AgMBAAGjUzBRMB0GA1Ud
DgQWBBQhkuIPoPbRRHnHJzgnaDFb5MjB1jAfBgNVHSMEGDAWgBQhkuIPoPbRRHnH
JzgnaDFb5MjB1jAPBgNVHRMBAf8EBTADAQH/MA0GCSqGSIb3DQEBCwUAA4IBAQAz
Kl7yNaJswWDspdGEObd2U1Q1C3oD60Rit4Mg5VZD21frUbmcf0oyfFaF+Dpbvv1P
2ZwajGH+TcOUMyZiJgpaEQHCaGPS976AcjGmnuLoKuKSTV9CerEvbKEVj8hWSvbx
QsNQc586Gx63zKbStWS6u+hmwarSYXeD9qfcTELmRbMHIkCf/QjSlB2gNXCBcMs1
KGgZVnv22W2MLE4kr/vphq3390CZNuukZS+dMQAJLfrFn1RzVmGyFLnEk68iXdlc
0E+Pa1DSTXVxBflhYlcdxtQn16xjewxOPHc7oY1k0N8J4CsEEAZgZ4iCptA8pyzz
FVZTAzOo/Ah0VJjgPOdh
-----END CERTIFICATE-----
28 changes: 28 additions & 0 deletions examples/run/docker/ssl/key.pem
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
-----BEGIN PRIVATE KEY-----
MIIEvQIBADANBgkqhkiG9w0BAQEFAASCBKcwggSjAgEAAoIBAQDELUQ/KvLjskGs
VFzXQouwmQnKLOv2IPHo74nGPpsn+K3f1sD1NM429pGrXDC2BBXQxvhDhThHbeyl
XDgi4z0WSEbRWQVdcbB0ilCRe2phfgdqVyTherRNciYX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