|
|
8 years ago | |
|---|---|---|
| .. | ||
| scripts | 10 years ago | |
| templates | 8 years ago | |
| README.md | 8 years ago | |
| create-env.sh | 8 years ago | |
| destroy-env.sh | 8 years ago | |
| project_label.sh | 8 years ago | |
oc command and "edivorce-build-template.yaml" file in the templates directory:oc process -f edivorce-build-template.yaml -v NAME=<product-name> -v SOURCE_REPOSITORY_URL=<github url> -v SOURCE_REPOSITORY_REF=<branch or ref> | oc create -f -
For example:
oc process -f edivorce-build-template.yaml -v NAME=edivorce-django -v SOURCE_REPOSITORY_URL=https://github.com/bcgov/eDivorce.git -v SOURCE_REPOSITORY_REF=master | oc create -f -
oc policy add-role-to-user system:image-puller system:serviceaccount:jag-csb-edivorce-<env-name>:default -n jag-csb-edivorce-tools
oc policy add-role-to-user edit system:serviceaccount: jag-csb-edivorce-tools:default -n jag-csb-edivorce-<env-name>
oc tool to create the necessary resources within each project:oc process -f edivorce-environment-template.yaml -v ENVIRONMENT_TYPE=<env-name> | oc create -f -
For example:
oc process -f edivorce-environment-template.yaml -v ENVIRONMENT_TYPE=dev,VOLUME_CAPACITY=1Gi | oc create -f -
There are several environments set up for different purposes within OpenShift. They are available at the URLs below.
| Environment | URL | Notes |
|---|---|---|
| DEV | edivorce-dev.pathfinder.gov.bc.ca | |
| TEST | edivorce-test.pathfinder.gov.bc.ca | |
| PROD | edivorce-prod.pathfinder.gov.bc.ca |
oc) toolsoc to your PATH.oc login https://console.pathfinder.gov.bc.ca:8443 --token=xtyz123xtyz123xtyz123xtyz123oc commands. oc -h provides a summary of available commands.todo: add instructions on how to 'oc rsh' into the django pod to manage the postgresql pod
Free OpenShift book from RedHat – good overview
Red Hat Container Development Kit
OpenShift CI/CD pieline Demos: