Compare commits
3 Commits
1.1.0+6.2.
...
docs
| Author | SHA1 | Date | |
|---|---|---|---|
| b45ed24826 | |||
| 14dd509115 | |||
| 21b6c17a69 |
@ -1,5 +1,8 @@
|
||||
RECIPE=forgejo-runner
|
||||
|
||||
# The level of logging, can be trace, debug, info, warn, error, fatal
|
||||
LOG_LEVEL=info
|
||||
|
||||
CACHE_ENABLED=false
|
||||
|
||||
# Defines the number of concrurrent tasks to be run
|
||||
@ -9,4 +12,4 @@ RUNNER_TIMEOUT=3h
|
||||
|
||||
# Set to 'host', to use the host network. When left empty it creates a temporary
|
||||
# network for each container.
|
||||
#CONTAIER_NETWORK
|
||||
#CONTAINER_NETWORK
|
||||
|
||||
15
README.md
15
README.md
@ -4,6 +4,21 @@
|
||||
|
||||
!! WARNING: This recipe should be used with great caution, since it has access to the docker daemon. We recommend running it in a seperate vm or host !!
|
||||
|
||||
<!-- metadata -->
|
||||
* **Category**: Apps
|
||||
* **Status**: 5
|
||||
* **LICENSE**: [GPLv3-or-later](https://code.forgejo.org/forgejo/runner/src/branch/main/LICENSE)
|
||||
* **Maintainers**: [Klasse & Methode](https://klasse-methode.it) (@p4u1 @p4u1_f4u1:matrix.org)
|
||||
* **Repository**: [code.forgejo.org/forgejo/runner](https://code.forgejo.org/forgejo/runner)
|
||||
* **Documentation**: [forgejo.org/docs/next/admin/actions/](https://forgejo.org/docs/next/admin/actions/)
|
||||
* **Image**: [`runner`](https://code.forgejo.org/forgejo/-/packages/container/runner/11), 4, upstream
|
||||
* **Healthcheck**: No
|
||||
* **Backups**: no
|
||||
* **Email**: 0
|
||||
* **Tests**: 0
|
||||
* **SSO**: 0
|
||||
<!-- endmetadata -->
|
||||
|
||||
## Registering
|
||||
|
||||
The forgejo runner needs to be registered at the forgejo instance. For that see the [official documentation](https://forgejo.org/docs/latest/admin/runner-installation/#standard-registration) on how to create a token.
|
||||
|
||||
2
abra.sh
2
abra.sh
@ -1,4 +1,4 @@
|
||||
export RUNNER_CONF_VERSION=v8
|
||||
export RUNNER_CONF_VERSION=v8-b
|
||||
export ENTRYPOINT_VERSION=v9
|
||||
|
||||
register_runner() {
|
||||
|
||||
@ -2,10 +2,9 @@ version: '3.8'
|
||||
|
||||
services:
|
||||
app:
|
||||
image: 'code.forgejo.org/forgejo/runner:6.2.2'
|
||||
image: 'code.forgejo.org/forgejo/runner:8.0.1'
|
||||
environment:
|
||||
- DOCKER_HOST=tcp://socket-proxy:2375
|
||||
- RUNNER_CAPACITY
|
||||
configs:
|
||||
- source: runner_conf
|
||||
target: /config.yml
|
||||
@ -16,7 +15,7 @@ services:
|
||||
- "data:/data"
|
||||
deploy:
|
||||
labels:
|
||||
- "coop-cloud.${STACK_NAME}.version=1.1.0+6.2.2"
|
||||
- "coop-cloud.${STACK_NAME}.version=2.0.0+8.0.1"
|
||||
networks:
|
||||
- internal
|
||||
ports:
|
||||
@ -24,8 +23,9 @@ services:
|
||||
entrypoint: /custom-entrypoint.sh
|
||||
|
||||
socket-proxy:
|
||||
image: lscr.io/linuxserver/socket-proxy:1.26.1-r0-ls15
|
||||
image: lscr.io/linuxserver/socket-proxy:3.2.3
|
||||
environment:
|
||||
- PROXY_READ_TIMEOUT=5000
|
||||
- ALLOW_START=1
|
||||
- ALLOW_STOP=1
|
||||
- ALLOW_RESTARTS=1
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
log:
|
||||
# The level of logging, can be trace, debug, info, warn, error, fatal
|
||||
level: info
|
||||
level: {{ env "LOG_LEVEL" }}
|
||||
|
||||
runner:
|
||||
# Where to store the registration result.
|
||||
@ -53,7 +53,7 @@ container:
|
||||
# Only takes effect if "network" is set to "".
|
||||
enable_ipv6: false
|
||||
# Whether to use privileged mode or not when launching task containers (privileged mode is required for Docker-in-Docker).
|
||||
privileged: false
|
||||
privileged: true
|
||||
# And other options to be used when the container is started (eg, --add-host=my.forgejo.url:host-gateway).
|
||||
options:
|
||||
# The parent directory of a job's working directory.
|
||||
|
||||
Reference in New Issue
Block a user