From 9b3ea2c8a7eb3e9c60beca30dbe39a3bcf6d497c Mon Sep 17 00:00:00 2001 From: kobergj Date: Tue, 9 Dec 2025 10:18:48 +0100 Subject: [PATCH] feat: clean up docker-compose example Co-authored-by: Martin Signed-off-by: Julian Koberg --- deployments/examples/ocis_multi/.DS_Store | Bin 6148 -> 0 bytes deployments/examples/ocis_multi/README.md | 22 ++++++++++++++---- .../examples/ocis_multi/config/.DS_Store | Bin 6148 -> 0 bytes .../config/keycloak/ocis-realm.dist.json | 16 +++++++++++-- .../ocis_multi/config/ocis/csp-ocm.yaml | 4 ---- .../examples/ocis_multi/docker-compose.yml | 2 +- 6 files changed, 32 insertions(+), 12 deletions(-) delete mode 100644 deployments/examples/ocis_multi/.DS_Store delete mode 100644 deployments/examples/ocis_multi/config/.DS_Store diff --git a/deployments/examples/ocis_multi/.DS_Store b/deployments/examples/ocis_multi/.DS_Store deleted file mode 100644 index a218b1f9943cc6b1f0047834ccfe5caab1c1d73e..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 6148 zcmeHKJ8Aa?04@=B!`yob zV6gzOCQgBfz%;19plY@l8g#@<=GDY0FzBM$d}!XR*`cW4j`NGBi`GDnRDcTHEASM{ zjn)5G_%HqcJ&7wSKn4Dl0=n$q`VLRZ+S)wMYHfk<;FfcRn_=!03|@|bUXHP_a=i7V b$SXF-eodSLosPKEf&3XTU1(I`(F%M6lM@wl diff --git a/deployments/examples/ocis_multi/README.md b/deployments/examples/ocis_multi/README.md index 0837071b7c9..9fae454865e 100644 --- a/deployments/examples/ocis_multi/README.md +++ b/deployments/examples/ocis_multi/README.md @@ -1,6 +1,18 @@ ---- -document this deployment example in: docs/ocis/deployment/ocis_keycloak.md ---- +# Infinite Scale Multi-Instance Deployment Example + +This docker-compose file spins up 2 ocis instances connected to the same keycloak instance. +- `ocis.owncloud.test` +- `ocis.ocm.owncloud.test` + +Demo User have different roles on different instances + +| User | ocis.owncloud.test | ocis.ocm.owncloud.test | +| --- | --- | --- | +| admin | admin | admin | +| einstein | user-light | user-light | +| katherine | space-admin | | +| marie | user-light | user | +| moss | | admin | | +| richard | user | user-light | + -Please refer to [our documentation](https://owncloud.dev/ocis/deployment/ocis_keycloak/) -for instructions on how to deploy this scenario. diff --git a/deployments/examples/ocis_multi/config/.DS_Store b/deployments/examples/ocis_multi/config/.DS_Store deleted file mode 100644 index 5249049a05bdf0765251249244158c5d3bc2e0cf..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 6148 zcmeHKJ5Iw;5S#@UmS|E^zAJD8D+(vz0)PV&N+cH%1)Zy$i=#370TDTfiU!R}`{upz z?ml@6uNQ!=U$-~F3P4YH#L<_f`E&P$T@>SJQDct@57<3#591>GJmI-Lc6h=YMtsYE zoTfdCqGQPsFF1J7Px5>%u~I+^NC7Dz1*E|53V3^^^;d~nrGONW0$&RF_o2}phr&5A zJ{??Q1R!>#!?=%Gg4moO4ux|f8JcA(F;lHZ49j%#t>T8lIWf~=aWm`G%~lhN#qH!< zgu{kJtx`Y=oGNgc$Cda0Tlx?4|7ns=Qa}p)D+R3E+-=r;rRuGVm-AlR==XGwd8fN^ pA1Pd-9TTG+^Wg3HI)XB;`JT^*!Z|V0$wxX-KLf6dObYz90w3RO8h!u( diff --git a/deployments/examples/ocis_multi/config/keycloak/ocis-realm.dist.json b/deployments/examples/ocis_multi/config/keycloak/ocis-realm.dist.json index b8fc99d48a6..f17ee60ce8e 100644 --- a/deployments/examples/ocis_multi/config/keycloak/ocis-realm.dist.json +++ b/deployments/examples/ocis_multi/config/keycloak/ocis-realm.dist.json @@ -675,6 +675,10 @@ "credentialData": "{\"hashIterations\":27500,\"algorithm\":\"pbkdf2-sha256\",\"additionalParameters\":{}}" } ], + "attributes": { + "memberOf": ["base"], + "guestOf": [] + }, "disableableCredentialTypes": [], "requiredActions": [], "realmRoles": [ @@ -703,6 +707,10 @@ "credentialData": "{\"hashIterations\":27500,\"algorithm\":\"pbkdf2-sha256\",\"additionalParameters\":{}}" } ], + "attributes": { + "memberOf": ["ocm"], + "guestOf": ["base"] + }, "disableableCredentialTypes": [], "requiredActions": [], "realmRoles": [ @@ -735,8 +743,8 @@ "enabled": true, "totp": false, "attributes": { - "memberOf": "ocm", - "guestOf": "base" + "memberOf": ["ocm"], + "guestOf": [] }, "credentials": [ { @@ -784,6 +792,10 @@ "credentialData": "{\"hashIterations\":27500,\"algorithm\":\"pbkdf2-sha256\",\"additionalParameters\":{}}" } ], + "attributes": { + "memberOf": ["base"], + "guestOf": ["ocm"] + }, "disableableCredentialTypes": [], "requiredActions": [], "realmRoles": [ diff --git a/deployments/examples/ocis_multi/config/ocis/csp-ocm.yaml b/deployments/examples/ocis_multi/config/ocis/csp-ocm.yaml index cbd8ec020d3..fca948d96b9 100644 --- a/deployments/examples/ocis_multi/config/ocis/csp-ocm.yaml +++ b/deployments/examples/ocis_multi/config/ocis/csp-ocm.yaml @@ -16,8 +16,6 @@ directives: - '''self''' - 'blob:' - 'https://embed.diagrams.net/' - # In contrary to bash and docker the default is given after the | character - - 'https://${COLLABORA_DOMAIN|collabora.ocm.next.owncloud.test}/' # This is needed for the external-sites web extension when embedding sites - 'https://owncloud.dev' img-src: @@ -25,8 +23,6 @@ directives: - 'data:' - 'blob:' - 'https://raw.githubusercontent.com/owncloud/awesome-ocis/' - # In contrary to bash and docker the default is given after the | character - - 'https://${COLLABORA_DOMAIN|collabora.ocm.next.owncloud.test}/' manifest-src: - '''self''' media-src: diff --git a/deployments/examples/ocis_multi/docker-compose.yml b/deployments/examples/ocis_multi/docker-compose.yml index bbade2717d7..76466600f06 100644 --- a/deployments/examples/ocis_multi/docker-compose.yml +++ b/deployments/examples/ocis_multi/docker-compose.yml @@ -3,7 +3,7 @@ version: "3.7" services: traefik: - image: traefik:v2.9.1 + image: traefik:v3.6.4 networks: ocis-net: aliases: