OpenShift Gogs: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
No edit summary
Line 8: Line 8:


The following command line should have been used:
The following command line should have been used:
[[oc process]] -f ./generic-postgresql.yaml \
  --param APPLICATION_NAME=gogs \
  --param POSTGRESQL_USER=gogsdb \
  --param POSTGRESQL_PASSWORD=gogs. \
  --param POSTGRESQL_DATABASE=... \
| [[oc create]] -f -







Revision as of 04:15, 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=gogsdb \
 --param POSTGRESQL_PASSWORD=gogs. \
 --param POSTGRESQL_DATABASE=... \
| oc create -f -


The template will create the OpenShift objects required by a Gogs repository and the Postgres dependency pod.

  • 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
...