Created
December 11, 2020 17:37
-
-
Save deptno/20c999efd4e00ee5e5fb9861db4a8ee1 to your computer and use it in GitHub Desktop.
github actions - self hosted runner ubuntu 20.04
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM ubuntu:20.04 | |
SHELL ["/bin/bash", "-c"] | |
ENV RUNNER_ALLOW_RUNASROOT=true | |
ARG DEBIAN_FRONTEND=noninteractive | |
RUN sed -i 's/kr.archive.ubuntu.com/mirror.kakao.com/g' /etc/apt/sources.list | |
RUN apt update | |
RUN apt install -y git dnsutils bison brotli bzip2 curl dbus dpkg fakeroot file flex ftp gnupg2 iproute2 iputils-ping jq lib32z1 libc++-dev libc++abi-dev libcurl4 libgbm-dev libgconf-2-4 libgtk-3-0 libsecret-1-dev libsqlite3-dev libunwind8 libxkbfile-dev libxss1 locales m4 netcat openssh-client parallel patchelf pkg-config python-is-python3 rpm rsync shellcheck sqlite3 ssh sudo telnet texinfo time tk tzdata unzip upx wget xorriso xvfb xz-utils zip zstd zsync | |
RUN curl https://get.volta.sh | bash | |
RUN mkdir actions-runner \ | |
&& cd actions-runner \ | |
&& curl -O -L https://github.com/actions/runner/releases/download/v2.274.2/actions-runner-linux-x64-2.274.2.tar.gz \ | |
&& tar xzf ./actions-runner-linux-x64-2.274.2.tar.gz | |
ARG GITHUB_ACTIONS_REPO_URL | |
ARG GITHUB_ACTIONS_TOKEN | |
RUN ./actions-runner/config.sh --url $GITHUB_ACTIONS_REPO_URL --token $GITHUB_ACTIONS_TOKEN | |
CMD ["./actions-runner/run.sh"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment