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 zip
npm install -g less
Create a go working directory:
mkdir ~/go
export GOPATH=${HOME}/go
Get and build gogs binary:
go get -u -tags "sqlite tidb redis memcache pam cert" github.com/gogits/gogs
cd ${GOPATH}/src/github.com/gogits/gogs
Maybe you need to fix the LDFLAGS
on SmartOS because of the stack smashing
protector if you use sqlite:
LDFLAGS += -extldflags "-lssp"
To make a good release I would recommend modify the Makefile
again and add the
following line to have the correct version number in the release archive:
NOW = $(shell cat templates/.VERSION)
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. Because it's much more awesome
to use a tar.gz
file I also build an additional file:
cd release && \
tar cfz $(ls *.zip | sed 's:.zip::g' | tail -n1).tar.gz gogs
No mdata variable is required.
22/tcp
: ssh connections80/tcp
: http webserver443/tcp
: https webserver