Closed faizanahmad055 closed 5 years ago
@faizanahmad055 It seems that the plugin jar package should be put to $install_dir/system/org/github/flytreeleft/nexus3-keycloak-plugin/$PLUGIN_VERSION
:
PLUGIN_DIR="$install_dir/system/org/github/flytreeleft/nexus3-keycloak-plugin/$PLUGIN_VERSION"
mkdir -p $PLUGIN_DIR
cd $PLUGIN_DIR
curl -L -O https://github.com/flytreeleft/nexus3-keycloak-plugin/releases/download/$PLUGIN_VERSION/nexus3-keycloak-plugin-$PLUGIN_VERSION.jar
You can see the Dockerfile for more details.
Hi sure, I'll try it out today and update here. Thanks.
Hi, thank you for help. It worked. You can close the issue.
Hi, I'm facing an issue, where I can't set up nexus3-keycloak-plugin. I'm using below-mentioned images Keycloak: fabric8/keycloak-postgres:v15751c8 Nexus: quay.io/travelaudience/docker-nexus:3.13.0_alpine_3.8.1 I'm using public nexus chart Steps that I've followed.
cd /opt apk add --no-cache curl apk add maven apk fetch openjdk8 apk add openjdk8
cd $install_dir/system curl -L -O https://github.com/flytreeleft/nexus3-keycloak-plugin/releases/download/0.3.2-SNAPSHOT/nexus3-keycloak-plugin-0.3.2-SNAPSHOT.jar
echo "mvn\:org.github.flytreeleft/nexus3-keycloak-plugin/$PLUGIN_VERSION = 200" >> $install_dir/etc/karaf/startup.properties
cd $install_dir/etc echo '{ "realm": "fabric8", "auth-server-url": "https://keycloak.test.com/auth", "ssl-required": "external", "resource": "nexus3", "credentials": { "secret": "dummysecret" }, "policy-enforcer": {} }' > $install_dir/etc/keycloak.json
And when I run this via post start script. I see this exception in logs
Can you please help.