refactor: rebase CI runner on Ubuntu 24.04, rename to ci-base
Replace Alpine-based legion-runner with a minimal Ubuntu 24.04 image. The act_runner binary is copied from the official image via multi-stage build. Job-specific tooling (Ruby, Node, Python, etc.) belongs in per-job container images specified via container: in workflows, not in the base runner image. Rename: legion-runner → ci-base
This commit is contained in:
@@ -17,7 +17,7 @@ spec:
|
|||||||
spec:
|
spec:
|
||||||
initContainers:
|
initContainers:
|
||||||
- name: register
|
- name: register
|
||||||
image: registry.neuralplatform.ai/legion-runner:latest
|
image: registry.neuralplatform.ai/ci-base:latest
|
||||||
workingDir: /data
|
workingDir: /data
|
||||||
command: ["/bin/sh", "-c"]
|
command: ["/bin/sh", "-c"]
|
||||||
args:
|
args:
|
||||||
@@ -47,7 +47,7 @@ spec:
|
|||||||
mountPath: /data
|
mountPath: /data
|
||||||
containers:
|
containers:
|
||||||
- name: runner
|
- name: runner
|
||||||
image: registry.neuralplatform.ai/legion-runner:latest
|
image: registry.neuralplatform.ai/ci-base:latest
|
||||||
workingDir: /data
|
workingDir: /data
|
||||||
command: ["act_runner", "daemon", "--config", "/data/config.yaml"]
|
command: ["act_runner", "daemon", "--config", "/data/config.yaml"]
|
||||||
envFrom:
|
envFrom:
|
||||||
|
|||||||
@@ -1,24 +1,11 @@
|
|||||||
FROM gitea/act_runner:latest
|
FROM gitea/act_runner:latest AS runner-bin
|
||||||
|
|
||||||
USER root
|
FROM ubuntu:24.04
|
||||||
|
|
||||||
RUN apk add --no-cache \
|
COPY --from=runner-bin /bin/act_runner /bin/act_runner
|
||||||
bash \
|
|
||||||
git \
|
RUN apt-get update && apt-get install -y --no-install-recommends \
|
||||||
|
ca-certificates \
|
||||||
curl \
|
curl \
|
||||||
nodejs \
|
git \
|
||||||
npm \
|
&& rm -rf /var/lib/apt/lists/*
|
||||||
python3 \
|
|
||||||
py3-pip \
|
|
||||||
python3-dev \
|
|
||||||
gcc \
|
|
||||||
musl-dev \
|
|
||||||
linux-headers \
|
|
||||||
make \
|
|
||||||
ruby \
|
|
||||||
ruby-bundler \
|
|
||||||
ruby-dev \
|
|
||||||
build-base \
|
|
||||||
zlib-dev && \
|
|
||||||
ln -sf /usr/bin/node /usr/local/bin/node && \
|
|
||||||
ln -sf /usr/bin/npm /usr/local/bin/npm
|
|
||||||
|
|||||||
Reference in New Issue
Block a user