The purpose of this workshop is to show a step-by-step hands-on covering basic capabilities from Red Hat Single Sign ON using a sample application js-console
js-console, ldap, mailhog and Red Hat SSO running on Openshift.
If you want to use it on RHPDS, create a new Openshift environment using OCP 4.4.
# change this according to the number of expected users
NUMBER_OF_USERS=5
for userNumber in $(seq 1 $NUMBER_OF_USERS); do
oc adm new-project sso${userNumber} --admin=user${userNumber}
# For now, ldap container requires root. See issue #1
oc adm policy add-scc-to-user anyuid -z default -n sso${userNumber}
done
To install etherpad, please check https://github.com/luszczynski/openshift-etherpad
To test the documentation locally, run
docker run -it --rm -p 8080:8080 -v $(pwd)/docs:/app-data \
-e CONTENT_URL_PREFIX="file:///app-data" \
-e LOG_TO_STDOUT=true \
-e WORKSHOPS_URLS="file:///app-data/_workshop.yml" \
quay.io/jamesfalkner/workshopper
Now open http://localhost:8080
To deploy the documentation on Openshift, run:
# Usually there is no need to change these vars
WORKSHOP_URL=https://raw.githubusercontent.com/luszczynski/rhsso-walkthrough/master/docs/_workshop.yml
ISSUES_URL=https://github.com/luszczynski/rhsso-walkthrough/issues
# Change these vars according to your environment
MASTER_URL=https://console-openshift-console.apps.cluster-brasilia-d6ec.brasilia-d6ec.example.opentlc.com/
ETHERPAD_URL=http://etherpad-etherpad.apps.cluster-brasilia-d6ec.brasilia-d6ec.example.opentlc.com/p/workshop
TERMINAL_URL=https://terminal-terminal.apps.cluster-brasilia-d6ec.brasilia-d6ec.example.opentlc.com/
OPENSHIFT_API_URL=https://api.cluster-brasilia-da5c.brasilia-da5c.example.opentlc.com:6443
oc new-project workshopper --display-name="Workshopper"
oc new-app quay.io/jamesfalkner/workshopper --name=workshopper \
-e WORKSHOPS_URLS="$WORKSHOP_URL" \
-e ISSUES_URL=$ISSUES_URL \
-e OPENSHIFT_MASTER_URL=$MASTER_URL \
-e ETHERPAD_URL=$ETHERPAD_URL \
-e TERMINAL_URL=$TERMINAL_URL \
-e OPENSHIFT_API_URL=$OPENSHIFT_API_URL \
-e LOG_TO_STDOUT=true -n workshopper
oc expose svc/workshopper -n workshopper