OpenShift Gogs Installation: Difference between revisions
Jump to navigation
Jump to search
(Created page with "=Internal= * OpenShift Gogs") |
No edit summary |
||
(2 intermediate revisions by the same user not shown) | |||
Line 2: | Line 2: | ||
* [[OpenShift_Gogs#Subjects|OpenShift Gogs]] | * [[OpenShift_Gogs#Subjects|OpenShift Gogs]] | ||
=Installation= | |||
The installation assumes that a PostgreSQL instance was deployed already following the procedure specified here [[OpenShift PostgreSQL#Installation|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 ./gogs.yaml \ | |||
--param GOGS_PASSWORD=... \ | |||
--param GOGS_ADMIN_EMAIL=... \ | |||
| [[oc create]] -f - | |||
=Uninstallation= | |||
Delete the config maps: 'gogs-config', 'gogs-install'. | |||
Delete the persistent volume claims 'gogs-config' and 'gogs-config', and [[OpenShift_PersistentVolume_Operations#Unbind_a_Pod_from_the_Volume|re-make the persistent volumes available]]. | |||
Delete: | |||
is/gogs | |||
dc/gogs | |||
rc/gogs-1 | |||
routes/gogs | |||
svc/gogs | |||
po/gogs-1-* | |||
=Troubleshooting= | |||
* [[OpenShift Gogs Fails to Create Required Postgresql Database]] |
Latest revision as of 06:50, 19 October 2018
Internal
Installation
The installation assumes that a PostgreSQL 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 ./gogs.yaml \ --param GOGS_PASSWORD=... \ --param GOGS_ADMIN_EMAIL=... \ | oc create -f -
Uninstallation
Delete the config maps: 'gogs-config', 'gogs-install'.
Delete the persistent volume claims 'gogs-config' and 'gogs-config', and re-make the persistent volumes available.
Delete:
is/gogs dc/gogs rc/gogs-1 routes/gogs svc/gogs po/gogs-1-*