-
Notifications
You must be signed in to change notification settings - Fork 90
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
18 additions
and
23 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,21 @@ | ||
FROM python:3.9 | ||
|
||
ENV RUNNER_ALLOW_RUNASROOT=1 | ||
FROM ubuntu:22.04 | ||
|
||
ENV DEBIAN_FRONTEND=noninteractive | ||
# Install dependencies | ||
RUN apt-get update | ||
RUN apt-get install -y apt-transport-https curl gnupg | ||
RUN apt-get install -y cmake | ||
RUN apt-get install -y clang | ||
RUN apt-get install -y clang-format | ||
RUN apt-get install -y clang-13 | ||
RUN apt-get install -y nodejs | ||
RUN apt-get install -y jq | ||
RUN apt-get install -y ca-certificates lsb-release wget | ||
RUN apt-get update && apt-get install -y --no-install-recommends apt-utils | ||
RUN apt-get update && apt-get install -y g++ gcc clang-14 python3-dev python3-pip python-is-python3 cmake nodejs jq curl apt-transport-https gnupg sudo git clang-format-11 ca-certificates lsb-release wget | ||
|
||
RUN useradd --create-home runner | ||
USER runner | ||
|
||
# Install GitHub action runner | ||
RUN mkdir /actions-runner | ||
WORKDIR /actions-runner | ||
RUN curl -o actions-runner-linux-x64-2.298.2.tar.gz -L https://github.com/actions/runner/releases/download/v2.298.2/actions-runner-linux-x64-2.298.2.tar.gz | ||
RUN mkdir /home/runner/actions-runner | ||
WORKDIR /home/runner/actions-runner | ||
RUN curl -o actions-runner-linux-x64-2.298.2.tar.gz -L\ | ||
https://github.com/actions/runner/releases/download/v2.298.2/actions-runner-linux-x64-2.298.2.tar.gz | ||
RUN echo "0bfd792196ce0ec6f1c65d2a9ad00215b2926ef2c416b8d97615265194477117 actions-runner-linux-x64-2.298.2.tar.gz" | shasum -a 256 | ||
RUN tar xzf ./actions-runner-linux-x64-2.298.2.tar.gz | ||
|
||
COPY start.sh start.sh | ||
COPY --chown=runner:runner start.sh start.sh | ||
RUN chmod +x start.sh | ||
|
||
ENTRYPOINT ["./start.sh"] |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
#!/bin/bash | ||
|
||
cd /actions-runner | ||
cd /home/runner/actions-runner | ||
|
||
# Get registration token | ||
REG_TOKEN=$(curl \ | ||
|