ci: use custom pantheon-ci image; fix registry 413 with Traefik buffering middleware
This commit is contained in:
@@ -15,9 +15,6 @@ spec:
|
|||||||
labels:
|
labels:
|
||||||
app: gitea-runner
|
app: gitea-runner
|
||||||
spec:
|
spec:
|
||||||
securityContext:
|
|
||||||
runAsUser: 1000
|
|
||||||
runAsGroup: 1000
|
|
||||||
initContainers:
|
initContainers:
|
||||||
- name: register
|
- name: register
|
||||||
image: gitea/act_runner:latest
|
image: gitea/act_runner:latest
|
||||||
@@ -29,18 +26,17 @@ spec:
|
|||||||
--instance "$GITEA_INSTANCE_URL" \
|
--instance "$GITEA_INSTANCE_URL" \
|
||||||
--token "$GITEA_RUNNER_REGISTRATION_TOKEN" \
|
--token "$GITEA_RUNNER_REGISTRATION_TOKEN" \
|
||||||
--name legion \
|
--name legion \
|
||||||
--labels "self-hosted,linux,x64,legion" \
|
--labels "self-hosted:docker://registry.neuralplatform.ai/pantheon-ci:latest,linux:docker://registry.neuralplatform.ai/pantheon-ci:latest,x64:docker://registry.neuralplatform.ai/pantheon-ci:latest,legion:docker://registry.neuralplatform.ai/pantheon-ci:latest" \
|
||||||
--no-interactive
|
--no-interactive
|
||||||
cat > /data/config.yaml << 'EOF'
|
cat > /data/config.yaml << 'EOF'
|
||||||
runner:
|
runner:
|
||||||
capacity: 2
|
capacity: 2
|
||||||
timeout: 3h
|
timeout: 3h
|
||||||
host:
|
container:
|
||||||
workdir_parent: /data/workspace
|
network: host
|
||||||
|
docker_host: "unix:///var/run/docker.sock"
|
||||||
|
force_pull: false
|
||||||
EOF
|
EOF
|
||||||
env:
|
|
||||||
- name: HOME
|
|
||||||
value: /home/will
|
|
||||||
envFrom:
|
envFrom:
|
||||||
- secretRef:
|
- secretRef:
|
||||||
name: gitea-runner-secret
|
name: gitea-runner-secret
|
||||||
@@ -52,11 +48,6 @@ spec:
|
|||||||
image: gitea/act_runner:latest
|
image: gitea/act_runner:latest
|
||||||
workingDir: /data
|
workingDir: /data
|
||||||
command: ["act_runner", "daemon", "--config", "/data/config.yaml"]
|
command: ["act_runner", "daemon", "--config", "/data/config.yaml"]
|
||||||
env:
|
|
||||||
- name: HOME
|
|
||||||
value: /home/will
|
|
||||||
- name: PATH
|
|
||||||
value: /home/will/.local/bin:/usr/local/bin:/usr/bin:/bin
|
|
||||||
envFrom:
|
envFrom:
|
||||||
- secretRef:
|
- secretRef:
|
||||||
name: gitea-runner-secret
|
name: gitea-runner-secret
|
||||||
@@ -65,24 +56,6 @@ spec:
|
|||||||
mountPath: /data
|
mountPath: /data
|
||||||
- name: docker-sock
|
- name: docker-sock
|
||||||
mountPath: /var/run/docker.sock
|
mountPath: /var/run/docker.sock
|
||||||
- name: usr-local-bin
|
|
||||||
mountPath: /usr/local/bin
|
|
||||||
readOnly: true
|
|
||||||
- name: usr-bin
|
|
||||||
mountPath: /usr/bin
|
|
||||||
readOnly: true
|
|
||||||
- name: usr-local-lib
|
|
||||||
mountPath: /usr/local/lib
|
|
||||||
readOnly: true
|
|
||||||
- name: usr-lib-python3
|
|
||||||
mountPath: /usr/lib/python3
|
|
||||||
readOnly: true
|
|
||||||
- name: usr-lib-python312
|
|
||||||
mountPath: /usr/lib/python3.12
|
|
||||||
readOnly: true
|
|
||||||
- name: home-will-local
|
|
||||||
mountPath: /home/will/.local
|
|
||||||
readOnly: true
|
|
||||||
resources:
|
resources:
|
||||||
requests:
|
requests:
|
||||||
memory: 512Mi
|
memory: 512Mi
|
||||||
@@ -97,21 +70,3 @@ spec:
|
|||||||
hostPath:
|
hostPath:
|
||||||
path: /var/run/docker.sock
|
path: /var/run/docker.sock
|
||||||
type: Socket
|
type: Socket
|
||||||
- name: usr-local-bin
|
|
||||||
hostPath:
|
|
||||||
path: /usr/local/bin
|
|
||||||
- name: usr-bin
|
|
||||||
hostPath:
|
|
||||||
path: /usr/bin
|
|
||||||
- name: usr-local-lib
|
|
||||||
hostPath:
|
|
||||||
path: /usr/local/lib
|
|
||||||
- name: usr-lib-python3
|
|
||||||
hostPath:
|
|
||||||
path: /usr/lib/python3
|
|
||||||
- name: usr-lib-python312
|
|
||||||
hostPath:
|
|
||||||
path: /usr/lib/python3.12
|
|
||||||
- name: home-will-local
|
|
||||||
hostPath:
|
|
||||||
path: /home/will/.local
|
|
||||||
|
|||||||
@@ -1,4 +1,17 @@
|
|||||||
---
|
---
|
||||||
|
# Middleware: allow unlimited body size for Docker image layer uploads
|
||||||
|
apiVersion: traefik.io/v1alpha1
|
||||||
|
kind: Middleware
|
||||||
|
metadata:
|
||||||
|
name: registry-chunked
|
||||||
|
namespace: registry
|
||||||
|
spec:
|
||||||
|
buffering:
|
||||||
|
maxRequestBodyBytes: 0
|
||||||
|
maxResponseBodyBytes: 0
|
||||||
|
memRequestBodyBytes: 0
|
||||||
|
retryExpression: ""
|
||||||
|
---
|
||||||
# Docker registry ingress with chunked upload middleware
|
# Docker registry ingress with chunked upload middleware
|
||||||
apiVersion: networking.k8s.io/v1
|
apiVersion: networking.k8s.io/v1
|
||||||
kind: Ingress
|
kind: Ingress
|
||||||
|
|||||||
Reference in New Issue
Block a user