-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
37 lines (26 loc) · 940 Bytes
/
Dockerfile
File metadata and controls
37 lines (26 loc) · 940 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
31
32
33
34
35
36
37
FROM theocf/debian:bookworm
ARG RUNNER_VERSION="2.328.0"
WORKDIR /runner
COPY start.sh .
RUN apt update -y && apt install -y \
curl \
python3 \
pipx \
# For ocflib tests
mariadb-server \
git
RUN curl -o actions-runner-linux-x64-${RUNNER_VERSION}.tar.gz -L https://github.com/actions/runner/releases/download/v${RUNNER_VERSION}/actions-runner-linux-x64-${RUNNER_VERSION}.tar.gz
RUN tar xzf ./actions-runner-linux-x64-${RUNNER_VERSION}.tar.gz
RUN /runner/bin/installdependencies.sh
# Setup script for groups and users to accommodate some of ocflib's tests
COPY setup_user.sh .
RUN ./setup_user.sh
# Runner config commands cannot be run by root
RUN useradd -m ocf
RUN chown -R ocf /runner
USER ocf
# Since the server is run by a different user, we must install pipx packages under user ocf
# We use poetry broadly for pakcage management
RUN pipx install poetry
ENV PATH="/home/ocf/.local/bin:${PATH}"
CMD ["./start.sh"]