8000 GitHub - skylime/mi-core-gogs at 17.2.0
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
This repository was archived by the owner on Mar 20, 2024. It is now read-only.

skylime/mi-core-gogs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

46 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mi-core-gogs

This repository is based on Joyent mibe. Please note this repository should be build with the mi-core-base mibe image.

description

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.

build gogs for the mibe image

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

mdata variables

No mdata variable is required.

services

  • 22/tcp: ssh connections
  • 80/tcp: http webserver
  • 443/tcp: https webserver

About

core.io Gogs - Go Git Service

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •  

Languages

0