ALT Linux Sisyphus VM image with Forgejo Runner installed
- HCL 36%
- Shell 30%
- Makefile 29.4%
- Smarty 4.6%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
| cloud-init | ||
| scripts | ||
| .gitignore | ||
| forgejo-runner.pkr.hcl | ||
| Makefile | ||
| README.md | ||
alt-forgejo-runner-image
ALT Linux Sisyphus VM image with Forgejo Runner
installed to /usr/local/bin/forgejo-runner.
Requirements
packer, qemu, curl, cloud-localds.
Build
make build # image goes to output/
make build INSTALL_SERVICE=false # without forgejo-runner.service
make build INSTALL_NODE=false # without node
make build EXTRA_PACKAGES="git docker-engine" # install additional packages
EXTRA_PACKAGES is a space-separated list of packages passed to apt-get install.
Packer variables runner_version and disk_size override the runner version
and disk size.
forgejo-runner.service
Runs a single job (forgejo-runner one-job) and exits. Starts on boot if
/etc/forgejo-runner.env exists:
FORGEJO_SERVER_URL=https://forgejo.example.org
RUNNER_UUID=...
RUNNER_LABEL=...
The runner token is read from /runner-token.
Testing
make run # boot the image, changes are discarded
make ssh # log in as test