Skip to content

Commit 797766e

Browse files
committed
refactor: Switch to DinD
1 parent 3dd080c commit 797766e

File tree

7 files changed

+1
-138
lines changed

7 files changed

+1
-138
lines changed

Dockerfile

Lines changed: 1 addition & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,11 @@
1-
FROM debian:bookworm-slim
1+
FROM scalified/dind:debian
22

33
LABEL maintainer="Scalified <[email protected]>"
44

55
ARG ACTIONS_RUNNER_VERSION="2.328.0"
66

7-
ENV DEBIAN_FRONTEND=noninteractive
87
ENV RUNNER_ALLOW_RUNASROOT="1"
98

10-
RUN apt update && \
11-
apt install -y --no-install-recommends \
12-
ca-certificates \
13-
curl \
14-
cron \
15-
wget \
16-
git \
17-
gnupg \
18-
lsb-release \
19-
libicu72 \
20-
supervisor && \
21-
apt clean && \
22-
rm -rf /var/lib/apt/lists/*
23-
24-
RUN mkdir -p /etc/apt/keyrings && \
25-
curl -fsSL https://download.docker.com/linux/debian/gpg -o /etc/apt/keyrings/docker.asc && \
26-
chmod a+r /etc/apt/keyrings/docker.asc && \
27-
echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/debian \
28-
$(. /etc/os-release && echo "$VERSION_CODENAME") stable" | tee /etc/apt/sources.list.d/docker.list > /dev/null
29-
30-
RUN apt update && \
31-
apt install -y --no-install-recommends \
32-
docker-ce \
33-
docker-buildx-plugin && \
34-
apt clean && \
35-
rm -rf /var/lib/apt/lists/*
36-
379
WORKDIR /opt/actions-runner
3810

3911
RUN curl -sSLo actions-runner.tar.gz "https://github.com/actions/runner/releases/download/v${ACTIONS_RUNNER_VERSION}/actions-runner-linux-x64-${ACTIONS_RUNNER_VERSION}.tar.gz" \
@@ -42,5 +14,3 @@ RUN curl -sSLo actions-runner.tar.gz "https://github.com/actions/runner/releases
4214

4315
COPY rootfs /
4416

45-
ENTRYPOINT ["/usr/local/bin/entrypoint"]
46-

README.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ docker run \
2323
--restart unless-stopped \
2424
--privileged \
2525
-v $(pwd)/docker:/var/lib/docker \
26-
-e "DOCKER_PRUNE_SCHEDULE=0 0 * * 1" \
2726
-e URL=https://github.com/$GITHUB_ORG_NAME \
2827
-e TOKEN=AAAAAAAAAAAAAAAAAAAAAAAAAAAAA \
2928
-e LABELS=ghar-runner-1 \
@@ -33,7 +32,6 @@ docker run \
3332

3433
| Environment Variable | Description |
3534
|-------------------------|--------------------------------------------------------------------------|
36-
| `DOCKER_PRUNE_SCHEDULE` | **Cron** schedule for auto docker system prune ("37 4 2 * *" by default) |
3735
| `URL` | **GitHub** organization URL: `https://github.com/$GITHUB_ORG_NAME` |
3836
| `TOKEN` | **GitHub** Actions Runner token displayed after adding a new runner |
3937
| `LABELS` | Labels assigned to the **GitHub Actions Runner** |

rootfs/etc/supervisor.d/cron.ini

Lines changed: 0 additions & 19 deletions
This file was deleted.

rootfs/etc/supervisor.d/docker.ini

Lines changed: 0 additions & 19 deletions
This file was deleted.

rootfs/etc/supervisord.conf

Lines changed: 0 additions & 49 deletions
This file was deleted.

rootfs/usr/local/bin/docker-system-prune

Lines changed: 0 additions & 10 deletions
This file was deleted.

rootfs/usr/local/bin/entrypoint

Lines changed: 0 additions & 8 deletions
This file was deleted.

0 commit comments

Comments
 (0)