Skip to content

Deployment of a Gitea git server with a Openshift template and an additional script to create users.

Notifications You must be signed in to change notification settings

stas-at-ibm/os-gitea-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

Openshift Gitea Git Server

Guide on how to create a Gitea git server in Openshift with one user using a template resource.

The difference to the original template is that this Gitea instance has an additional configuration to allow sending webhooks to private IPs: ALLOWED_HOST_LIST = external,private.

Create Project

We will pick gitea-git-server as a project name.

oc new-project gitea-git-server

Create Resources

Hostname should be the route of your Gitea git server.

oc new-app -f gitea-git-server-template.yaml --param=HOSTNAME="<application-name>-<project>.<default-domain-suffix>"

If you are testing with Openshift local and picked the above project you can use this command.

oc new-app -f gitea-git-server-template.yaml --param=HOSTNAME="gitea-gitea-git-server.apps-crc.testing"

Create User

Create a gitea user with a gitea password.

oc exec svc/gitea > /dev/null -- /home/gitea/gitea \
  -w /home/gitea/ \
  -c /home/gitea/conf/app.ini \
  admin user create --username gitea --password gitea --email gitea@gitea.com \
  --must-change-password=false

Resources

About

Deployment of a Gitea git server with a Openshift template and an additional script to create users.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published