Sign inSign up

chrandgull/gitea

By chrandgull

Updated about 5 years ago

Gitea for system z

Image
0

10K+

chrandgull/gitea repository overview

Purpose

This is a gitea image compiled for zLinux (s390x) architecture. Gitea provides an alternative to traditional mainframe source control solutions such as CA-Endevor or ISPW.

if you are looking for the offical X86 docker images, you can find those here: Gitea

This image was built with SQLite support on a Suse VM running on the IBM Public Community Cloud for Z. This service is completely free and is a great way to access Linux on Z.

If you would like to build this image yourself, please follow the instructions in the setup section and then proceed to building.

If you just want to get started running this on Z, reference Using - Docker Image (direct execution).

Setup

This documentation was written for release v1.12.5 for Gitea. It should work fine for other versions too. Replace v1.12.5 with other releases as needed.

Go to the link listed above for the IBM Public Community Cloud for Z. Click "Trial - Try Virtual Machines on the LinuxONE cloud Community Cloud".

Go through the process of setting up your virtual machine. Select SUSE for the operating system.

  sudo zypper install git python3 docker gcc-c++ gcc wget curl nodejs make
  sudo ln -s /usr/bin/gcc /usr/bin/s390x-linux-gnu-gcc (Make will attempt to call this directly, but it's just GCC on the VM.)

Download the latest version of go for s390x from here. You can use wget to download it directly to the VM.

 wget https://golang.org/dl/go1.15.2.linux-s390x.tar.gz

Unpack the version of go to a directory of your choice. I chose ~/build_tools/go. So the full path was /home/linux1/build_tools/go/bin. If you're using a linuxOne VM, then your path can be exactly the same as the default user ID is linux1.

Edit .bashrc to add it to your path. export PATH=/home/linux1/build_tools/go/bin:$PATH

Clone Gitea

git clone https://github.com/go-gitea/gitea.git
cd gitea
git checkout tags/v1.12.5

Log out of the session session and log back in.

Proceed to section - Building

Building

From the root of the source tree, run:

TAGS="bindata" make build

or if sqlite support is required:

TAGS="bindata sqlite sqlite_unlock_notify" make build

The build target is split into two sub-targets:

If pre-built frontend files are present it is possible to only build the backend:

TAGS="bindata" make backend

Parallelism is not supported for these targets, so please don't include -j <num>.

More info: https://docs.gitea.io/en-us/install-from-source/

Using (direct execution)

./gitea web

Using - Docker Image (direct execution). Assuming version v1.12.5. Adjust as needed.

 docker pull chrandgull/gitea:v1.12.5
 docker run -d -p 3000:3000 chrandgull/gitea:v1.12.5 

Questions

Email me at [email protected] for questions about any images I've built.

Tag summary

Content type

Image

Digest

Size

62.6 MB

Last updated

about 5 years ago

docker pull chrandgull/gitea