allow runners to better build docker containers

This commit is contained in:
James Andariese 2024-03-10 15:13:07 -05:00
parent 81c506bcba
commit 822a9065b3
2 changed files with 14 additions and 7 deletions

View File

@ -11,6 +11,7 @@ data:
runner:
capacity: 1
envs:
REPO_BASE_OVERRIDE: "https://git.strudelline.net"
DOCKER_REGISTRY: "git.strudelline.net"
env_file: .env
fetch_timeout: 5s
@ -20,9 +21,9 @@ data:
- "host:host"
- "metal-linux:host"
- "metal-docker:host"
- "ubuntu-latest:docker://ghcr.io/catthehacker/ubuntu:js-latest"
- "ubuntu-22.04:docker://ghcr.io/catthehacker/ubuntu:js-22.04"
- "ubuntu-20.04:docker://ghcr.io/catthehacker/ubuntu:js-20.04"
- "ubuntu-latest:docker://ghcr.io/catthehacker/ubuntu:act-latest"
- "ubuntu-22.04:docker://ghcr.io/catthehacker/ubuntu:act-22.04"
- "ubuntu-20.04:docker://ghcr.io/catthehacker/ubuntu:act-20.04"
cache:
# Enable cache server to use actions/cache.
enabled: true
@ -47,7 +48,7 @@ data:
# If it's empty, act_runner will create a network automatically.
network: ""
# 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.gitea.url:host-gateway).
options:
# The parent directory of a job's working directory.

View File

@ -10,7 +10,7 @@ metadata:
reloader.stakater.com/auto: "true"
spec:
podManagementPolicy: OrderedReady
replicas: 4
replicas: 1
selector:
matchLabels:
app: gitea
@ -33,6 +33,8 @@ spec:
- name: gitea-runner-config
configMap:
name: gitea-runner-config
- name: docker-certs
emptyDir: {}
containers:
- image: jamesandariese/act_runner_node:latest
imagePullPolicy: Always
@ -58,6 +60,10 @@ spec:
volumeMounts:
- mountPath: /data
name: gitea-runner-data
subPath: data
- mountPath: /run
name: gitea-runner-data
subPath: run
- mountPath: /config
name: gitea-runner-config
readOnly: true
@ -74,8 +80,8 @@ spec:
name: gitea-runner-data
spec:
accessModes: [ "ReadWriteOnce" ]
storageClassName: local-path
storageClassName: nvme
resources:
requests:
storage: 10Gi
storage: 200Gi