File tree Expand file tree Collapse file tree 2 files changed +17
-3
lines changed Expand file tree Collapse file tree 2 files changed +17
-3
lines changed Original file line number Diff line number Diff line change 1
1
FROM ubuntu:latest
2
2
RUN apt-get update && \
3
- apt-get install -y curl tar docker && \
3
+ apt-get install -y \
4
+ curl \
5
+ tar \
6
+ apt-transport-https \
7
+ ca-certificates \
8
+ curl \
9
+ sudo \
10
+ gnupg-agent \
11
+ software-properties-common
12
+ RUN curl -fsSL https://download.docker.com/linux/ubuntu/gpg | apt-key add -
13
+ RUN add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
14
+ RUN apt-get install -y docker-ce && \
4
15
rm -rf /var/lib/apt/lists/*
16
+
5
17
RUN mkdir actions-runner && cd actions-runner
6
18
RUN curl -O https://githubassets.azureedge.net/runners/2.160.2/actions-runner-linux-x64-2.160.2.tar.gz
7
19
RUN tar xzf ./actions-runner-linux-x64-2.160.2.tar.gz
20
+ RUN mkdir /_work
21
+ WORKDIR /_work
8
22
COPY entrypoint.sh /
9
23
RUN chmod +x /entrypoint.sh
10
24
ENTRYPOINT ["/entrypoint.sh" ]
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
export AGENT_ALLOW_RUNASROOT=1
3
- echo ${RUNNER_NAME:- default} $' \n\n ' | . /config.sh --url ${REPO_URL} --token ${RUNNER_TOKEN}
4
- exec . /run.sh
3
+ echo ${RUNNER_NAME:- default} $' \n\n ' | /config.sh --url ${REPO_URL} --token ${RUNNER_TOKEN}
4
+ exec /run.sh
You can’t perform that action at this time.
0 commit comments