-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
30 lines (24 loc) · 935 Bytes
/
Dockerfile
File metadata and controls
30 lines (24 loc) · 935 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# This is for testing and development only.
# SSHD must be installed before running the playbook.
FROM geerlingguy/docker-${MOLECULE_DISTRO:-rockylinux8}-ansible:latest
RUN useradd runner
RUN yum install -y \
bind-utils \
net-tools \
git \
jq
# This codebase. The runner wrapper script.
COPY ./ /github-runner-starter
WORKDIR /github-runner-starter
RUN chown runner:runner . -R
# GitHub Runner code.
# Install runner to a path that won't ever be in a volume.
ENV RUNNER_PATH /usr/share/github-runner
# Install Dependencies
RUN curl https://raw.githubusercontent.com/actions/runner/refs/tags/v2.326.0/src/Misc/layoutbin/installdependencies.sh -o install-dependencies \
&& bash install-dependencies
# Run github-runner-starter script.
#RUN ./github-runner-starter --no-run --no-config --runner-path=${RUNNER_PATH}
# Change runner ownership & Switch user.
# RUN chown runner:runner ${RUNNER_PATH} -R
USER runner