Software and Systems How-To's, Tutorials, Demos, Notes

Running your own Git Service

Run the Go Git Service image using the command below

oc new-app wkulhanek/gogs:11.4

Attach storage to gogs and mount to /data

We are going to replace the “non-persistent” volume mounted on /data and change it to a persistent volume. Go to Applications->Deployments->gogs->Configuration. Scroll down to volumes and delete the volume mounted on /data.

Delete Gogs Non-Persistent Volume

Click on Add Storage.

Add New Storage

You’ll notice there is only one storage and it’s already claimed by another container. We need to create another storage. Click on ‘create storage’ and input the following details as show below:

Gogs Storage Details

Mount gogs-storage to /data and click Add

Create New Storage

Expose the gogs service

Type the following command to create a route for the gogs service.

oc expose svc gogs

Configure the gogs database by accessing the gogs url. TODO: Add detailed steps.

Click on the gogs url to open the gogs service.

Gogs Install Page

Set the following parameters to the following values:

Set the application url to the url of gogs.

Click on Install Gogs. You will get the following page

Gogs Sign-In Page

In the next exercise, we will learn how to externalize configuration using ConfigMaps

Next Exercise: Using ConfigMaps