Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Initial development of a Keycloak addon #185

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions add-ons/keycloak/keycloak.addon
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
###################################################################################################
# Name: keycloak
# Description: Installs Keycloak in a Keycloak project
# Required-Vars: OPENSHIFT_USERNAME, OPENSHIFT_PASSWORD, KEYCLOAK_PROJECT, KEYCLOAK_USER, KEYCLOAK_PASSWORD,DB_VENDOR
# OpenShift-Version: >=3.9.0
# Var-Defaults: OPENSHIFT_USERNAME=developer,OPENSHIFT_PASSWORD=developer,KEYCLOAK_PROJECT=keycloak,KEYCLOAK_USER=admin,KEYCLOAK_PASSWORD=admin,DB_VENDOR=h2
# Url: Template from https://raw.githubusercontent.com/jboss-dockerfiles/keycloak/master/openshift-examples/keycloak-https.json
###################################################################################################

# login
oc login -u system:admin

# add template
oc create -n openshift -f https://raw.githubusercontent.com/jboss-dockerfiles/keycloak/master/openshift-examples/keycloak-https.json

# login
oc login -u #{OPENSHIFT_USERNAME} -p #{OPENSHIFT_PASSWORD}

# create project
oc new-project #{KEYCLOAK_PROJECT}

# instantiate keycloak
oc new-app keycloak-https -p APPLICATION_NAME=#{KEYCLOAK_PROJECT} -p NAMESPACE=#{KEYCLOAK_PROJECT} -p KEYCLOAK_USER=#{KEYCLOAK_USER} -p KEYCLOAK_PASSWORD=#{KEYCLOAK_PASSWORD}
14 changes: 14 additions & 0 deletions add-ons/keycloak/keycloak.addon.remove
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
###################################################################################################
# Name: keycloak
# Description: Installs Keycloak in a Keycloak project
# Required-Vars: OPENSHIFT_USERNAME, OPENSHIFT_PASSWORD, KEYCLOAK_PROJECT, KEYCLOAK_USER, KEYCLOAK_PASSWORD,
# OpenShift-Version: >=3.9.0
# Var-Defaults: OPENSHIFT_USERNAME=developer,OPENSHIFT_PASSWORD=developer,KEYCLOAK_PROJECT=keycloak,DB_VENDOR=h2,KEYCLOAK_USER=admin,KEYCLOAK_PASSWORD=admin
# Url: Template from https://raw.githubusercontent.com/robert-greathouse/keycloak/master/openshift-examples/keycloak-https.json
###################################################################################################

oc login -u system:admin

oc delete template keycloak-https -n openshift

oc delete project keycloak