Please switch to Forgejo. Our Gogs image is discontinued and will not receive any updates.
This repository is based on Joyent mibe. Please note this repository should be build with the mi-core-base mibe image.
Minimal mibe image for Gogs - Go Git Service. It's required to finish the installation via web interface and follow the steps of the installer.
Please notice this documentation is a minimal copy of the original documentation from How to build gogs from source.
Install go and build requirements first:
pkgin install go build-essential git zip nodejs npm zip
npm install -g less
Create a go working directory:
mkdir ~/go
export GOPATH=${HOME}/go
Get and build gogs binary:
git clone --depth 1 https://github.com/gogs/gogs.git gogs
cd gogs
Use the official Makefile
to create an release:
make release TAGS="sqlite redis memcache pam cert"
You find an release/gogs.${NOW}.zip
file now. But sadly this fill does not
contains all required information. So we should generate our own release as
tar.gz
file:
cd release/gogs && \
cp -r ../../templates . &&
cp -r ../../public .
cd release && \
VERSION=$(sed -n 's/.*conf.App.Version = "\(.*\)+.*"/\1-'$(git rev-parse --short HEAD)'/p' ../gogs.go)
tar cfz gogs-${VERSION}.tar.gz gogs
No mdata variable is required.
22/tcp
: ssh connections80/tcp
: http webserver443/tcp
: https webserver