GoGS – lightweight git front-end

GoGS is a frontend for git, it is a low demanding solution and thanks to fact that its being wrote in Go it work on every platform that support Go language.

GoGS as a core application use git and support different databases (mysql, postgresql lub tidb)

apt-get install git

We could install gogs from source but we will use ready binary files for our system, and for backend we will use mariadb/mysql on debian/ubuntu system:

Lets download binary package from project page: gogs.io (in my case it was gogs_v0.9.13_linux_amd64.tar.gz) and extract it:

cd /var/www/git.example.com
wget https://dl.gogs.io/gogs_v0.9.13_linux_amd64.tar.gz
tar zxvf gogs_v0.9.13_linux_amd64.tar.gz

Now we need to create user and database for gogs:

mysql -u root -p
mysql> CREATE DATABASE gogs CHARACTER SET utf8 COLLATE utf8_bin;
mysql> GRANT ALL PRIVILEGES ON gogs.* TO 'gogs'@'localhost' IDENTIFIED BY 'password';
mysql> FLUSH PRIVILEGES;
mysql> QUIT;

 

First start:

/opt/gogs/gogs web

Now we can connect with gogs via web browser using localhost:3000 or domain:3000 because gogs listening on 0.0.0.0:3000 address.

Configure it:

Database Type: MySQL
Host: 127.0.0.1:3306
User: gogs
Password: gogs-password (in example it was 'password')

Rest things you can setup as you like.

Now we got running and ready to use GoGS installation (GoGIT)

Leave a Reply

Your email address will not be published.

*