openshift-labs / starter-guides

Getting Started with OpenShift for Developers workshop
https://openshift-labs.github.io/starter-guides-html/
Apache License 2.0
135 stars 147 forks source link

Trying to install starter workshop on my own OCP environment #109

Closed alberttwong closed 3 years ago

alberttwong commented 5 years ago

Does someone have the steps to load the template / apb into my own OCP environment?

alberttwong commented 5 years ago

Is this it?

oc login
oc new-project lab-infra
oc run apb --restart=Never --image="openshiftapb/starter-workshop-apb:ocp-3.11" \
    -- provision -vvv -e namespace=$(oc project -q) -e openshift_token=$(oc whoami -t)
alberttwong commented 5 years ago

https://github.com/openshift-labs/starter-guides/pull/110

alberttwong commented 5 years ago

Found out that the only real way to provisioning the workshop is through adding the APB to your service catalog and going through the wizard. If you use the above "oc run apb" it doesn't allow you to provision the number of users or type or any of the options you see in the wizard.

alberttwong commented 5 years ago

So the workshop seems to be deployed however I can't login with "user1" or any of the "user*. Any ideas?

alberttwong commented 5 years ago

I'm using htpasswd if it helps.

alberttwong commented 5 years ago

Checked the htpasswd file and the users were not created. I manually created them.

jorgemoralespou commented 5 years ago

@alberttwong We target RHPDS clusters where the users have been already provisioned in the htpasswd. Yes, the APB should try to create them, but given that users might be identified in multiple ways, we can not target any, so the only thing we could do is either error out or provide a message.

Also, to run the APB you can do it from your local laptop, or from within the platform as a regular pod, but you're missing many required arguments. Look into this file: https://github.com/openshift-labs/starter-guides/blob/ocp-3.11/apb/provision

alberttwong commented 5 years ago

@jorgemoralespou Anything else I need to do other than create new users for the workshop?

jorgemoralespou commented 5 years ago

@alberttwong As long as your cluster is OCP and aligned with the version, no.

If you want to use persistence, you need to make sure to have File Storage PVs available (else, select the ephemeral templates) although the APB does not yet allow you to select these.

alberttwong commented 5 years ago

Okay... hmm... do you have any instructions for the file storage PVs?

The reason why I ask is that one of my customers would like to run the starter workshop on their installation of OCP.

jorgemoralespou commented 5 years ago

Storage is used for databases, so any storage should work, unless you want to rolling deploy the databases (which you will probably not), in which case you'll need RWX, instead of just any storage.