oc new-app wkulhanek/gogs:11.4
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.
Click on Add 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:
Mount gogs-storage to /data and click Add
Type the following command to create a route for the gogs service.
oc expose svc gogs
Click on the gogs url to open the gogs service.
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
In the next exercise, we will learn how to externalize configuration using ConfigMaps
Next Exercise: Using ConfigMaps
Written on December 20th, 2017 by Bobby Corpus