Git Product home page Git Product logo

gogs-ose3's Introduction

#Overview

Running a the Gogs Git service as a container within OSE v3 (Beta4), with a persistant volume to survive restarts.

Currently it is configured to run in the infra labeled nodes (i.e. the master) and uses the codeskyblue/docker-gogs docker image.

##OSE Environment Config

This assumes you have followed the training in Using persistent storage. So from that the following would be configured :

nfs-utils installed
Firewall Configured
SELinux Configured
  1. Create another export

     mkdir -p /var/export/gogs
     chown nfsnobody:nfsnobody /var/export/gogs
     chmod 700 /var/export/gogs
    
  2. Edit /etc/exports and add the following line:

     /var/export/gogs *(rw,sync,all_squash)
    
  3. Export

     exportfs -a
    

Running exportfs you should see something similar to:

/var/export/gogs
	<world>
/var/export/vol1
	<world>

##Installation

This assumes you are creating this within the default namespace, i.e. running as the admin user. If you wish to create a seperate project to run this in then step one (Creating the PersistantVolume) still needs to be ran as the admininistrator.

  1. Create the PersistantVolume:

     osc create -f persistent-volume.yaml
    
  2. Create the PersistantVolumeClaim

     osc create -f persistent-volume-claim.yaml
    
  3. Create the pods, service & route

     osc create -f gogs.yaml
    

##Running

OSE will do the running for you! First run you will have to config Gogs.

  1. Head to http://gogs.cloudapps.example.com/ (That is the entry the route creates) which on first run will send you to the install page

  2. Change the Path to /data/gogs.db

  3. Change the Repository Root Path to /data/gogs-repositories

  4. Change the Domain to gogs.cloudapps.example.com

  5. Change the Application URL to http://gogs.cloudapps.example.com/

  6. Configure a username/password for the admin user

  7. Hit the Install Gogs button

You should see the files for the DB be created on the master under the /var/export/gogs directory

gogs-ose3's People

Contributors

caracan avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.