2.6 KiB
Hosting Telodendria
These are just my own personal notes for hosting Telodendria's code infrastructure. This document is not intended to be used by normal Telodendria users or developers. It may be useful if you are forking Telodendria, but I sincerely hope you'll contribute to the upstream project instead. I'm writing this document solely for my own reference, but I am placing it into Telodendria's code repository in the name of transparency.
Runners
The general sequence of steps required for setting up a CI runner is as follows:
-
Install the runner OS with all the defaults. I typically install my runners in virtual machines with 1 vcpu and 512mb RAM. Only Debian complained about this configuration, but since I didn't install a desktop environment, it worked out fine.
-
Install the packages required to build and execute the runner. These are:
- Git for checking out the source code.
- NodeJS for running
actions/checkout
, I think. Not really sure, all I know is that the runner will fail all jobs without NodeJS. - Go for compiling the runner itself.
Run these commands to install the packages:
- OpenBSD:
pkg_add git go node
- FreeBSD:
pkg install git go node
- NetBSD:
pkgin install git go nodejs openssl mozilla-rootcerts-openssl
(Note that thego
executable isgo121
or whatever version was installed. and that NetBSD has no root certificates installed by default) - Debian:
apt install git golang nodejs
- Alpine:
apk add git go nodejs
-
Install any development packages required to build Telodendria. For the BSDs, all development tools are built in so no additional packages are necessary. For the Linux distributions I've messed with, install these additional packages:
- Debian:
apt install make gcc libssl-dev
- Alpine:
apk add make gcc musl-dev openssl-dev
- Debian:
-
Clone
https://git.telodendria.io/Telodendria/act_runner.git
. -
Run
go build
in theact_runner
directory. On NetBSD, you may have toumount /tmp
first because/tmp
is by default very small. Otherwise, make/tmp
larger during installation. 2GB should be plenty. -
Run
./act_runner register
to register the runner. When prompted for the tags, follow following convention:- Linux Distros:
linux
,<distro>-v<version>
,<arch>
- BSD Derivatives:
bsd
,<osname>-v<version>
,<arch>
- Windows:
windows
,windows-v<version>
,<arch>
- MacOS:
macos
,macos-v<version>
,<arch>
- Others:
other
,<osname>-v<version>
,<arch>
Where
<arch>
is one ofx86
orx64
for now. ARM runners will be a future project. - Linux Distros:
-
Run
./act_runner daemon
.