OpenShift Gogs: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 16: | Line 16: | ||
| [[oc create]] -f - | | [[oc create]] -f - | ||
Use the template available at https://github.com/NovaOrdis/playground/blob/master/openshift/auxiliary-tools/gogs.yaml. It is based on https://github.com/OpenShiftDemos/openshift-cd-demo/blob/ocp-3.6/cicd-template.yaml. | |||
Execute it as follows: | |||
[[oc process]] -f ./generic-postgresql.yaml \ | |||
--param GOGS_PASSWORD=... \ | |||
--param POSTGRESQL_DATABASE=gogs \ | |||
| [[oc create]] -f - | |||
* Replace the conventional password value in the template with something safer: | * Replace the conventional password value in the template with something safer: |
Revision as of 04:27, 25 November 2017
Internal
Installation
The installation assumes that a Postgres instance was deployed already following the procedure specified here OpenShift Postgresql Installation and it is functional.
The following command line should have been used:
oc process -f ./generic-postgresql.yaml \ --param APPLICATION_NAME=gogs \ --param POSTGRESQL_USER=gogs \ --param POSTGRESQL_PASSWORD=... \ --param POSTGRESQL_DATABASE=gogs \ | oc create -f -
Use the template available at https://github.com/NovaOrdis/playground/blob/master/openshift/auxiliary-tools/gogs.yaml. It is based on https://github.com/OpenShiftDemos/openshift-cd-demo/blob/ocp-3.6/cicd-template.yaml.
Execute it as follows:
oc process -f ./generic-postgresql.yaml \ --param GOGS_PASSWORD=... \ --param POSTGRESQL_DATABASE=gogs \ | oc create -f -
- Replace the conventional password value in the template with something safer:
... parameters: - description: Password for the Gogs user. displayName: Gogs Password value: password name: GOGS_PASSWORD required: true ...
Update the readiness probe, now that the Gogs database has been created.