Skip to content
This repository has been archived by the owner on Dec 31, 2021. It is now read-only.

Commit

Permalink
Develop: support to verify the multiple Keycloak Realms feature
Browse files Browse the repository at this point in the history
  • Loading branch information
flytreeleft committed Apr 26, 2019
1 parent bc49aea commit fe6a6c1
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 0 deletions.
1 change: 1 addition & 0 deletions develop/keycloak-plugin.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
keycloak.auth.config=keycloak.json
11 changes: 11 additions & 0 deletions develop/keycloak.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"realm": "master",
"auth-server-url": "http://172.17.0.1:8086/auth",
"ssl-required": "external",
"resource": "nexus3",
"credentials": {
"secret": "1a2bfe56-9b4b-4bf3-bda2-2dd31fed1b9a"
},
"confidential-port": 0,
"policy-enforcer": {}
}
10 changes: 10 additions & 0 deletions develop/keycloak.test.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"realm": "test",
"auth-server-url": "http://172.17.0.1:8086/auth",
"ssl-required": "external",
"resource": "nexus3",
"credentials": {
"secret": "f5e314e8-6081-4ecb-85de-f4e9ff374bc8"
},
"confidential-port": 0
}
2 changes: 2 additions & 0 deletions develop/run-nexus3.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,9 @@ docker run -d --name ${DCR_NAME} \
--restart always \
-e NEXUS_CONTEXT="/" \
-v "${DCR_DATA_VOLUME}":/nexus-data \
-v "${DIR}/keycloak-plugin.properties":${NEXUS_HOME}/etc/keycloak-plugin.properties:ro \
-v "${DIR}/keycloak.json":${NEXUS_HOME}/etc/keycloak.json:ro \
-v "${DIR}/keycloak.test.json":${NEXUS_HOME}/etc/keycloak.test.json:ro \
-v "${PLUGIN_JAR}":"${NEXUS_HOME}/system/org/github/flytreeleft/nexus3-keycloak-plugin/${PLUGIN_VERSION}/nexus3-keycloak-plugin-${PLUGIN_VERSION}.jar":ro \
-p 172.17.0.1:8903:8081 \
${DCR_IMAGE}

0 comments on commit fe6a6c1

Please sign in to comment.