-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
37 lines (30 loc) · 955 Bytes
/
Copy pathDockerfile
File metadata and controls
37 lines (30 loc) · 955 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 ubuntu:18.04
# Install packages
RUN apt-get update \
&& apt-get install -y language-pack-ja sudo curl wget git gcc make\
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
# System settings
ENV TZ Asia/Tokyo
ENV LANG ja_JP.UTF-8
# Make runner user
RUN useradd runner -m \
&& echo runner:runner | chpasswd \
&& usermod -aG sudo runner
USER runner
WORKDIR /home/runner
# Install the actions-runner
RUN mkdir actions-runner \
&& cd actions-runner \
&& curl -o actions-runner-linux-x64-2.278.0.tar.gz -L https://github.com/actions/runner/releases/download/v2.278.0/actions-runner-linux-x64-2.278.0.tar.gz \
&& tar xzf ./actions-runner-linux-x64-2.278.0.tar.gz \
&& rm ./actions-runner-linux-x64-2.278.0.tar.gz
# Install dependencies for actions-runner
USER root
RUN cd actions-runner \
&& ./bin/installdependencies.sh \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
USER runner
COPY init.sh /home/runner/init.sh
CMD [ "./init.sh" ]