Skip to content

Commit 0409e25

Browse files
added gaplib changes
1 parent ac1a820 commit 0409e25

File tree

1 file changed

+43
-0
lines changed

1 file changed

+43
-0
lines changed

.github/scripts/ppc64le/self-hosted-builder/actions-runner.Dockerfile

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,5 +60,48 @@ RUN virtualenv --system-site-packages venv
6060
COPY fs/ /
6161
RUN chmod 777 /usr/bin/actions-runner /usr/bin/entrypoint
6262

63+
64+
#installing and configuring the runner
65+
66+
ARG RUNNERREPO="https://github.com/actions/runner" RUNNERPATCH
67+
68+
RUN apt-get -qq update -y && \
69+
apt-get -qq -y install wget git sudo curl dotnet-sdk-8.0 && \
70+
apt autoclean
71+
72+
RUN echo "Using SDK - `dotnet --version`"
73+
74+
ADD ${RUNNERPATCH} /tmp/runner.patch
75+
76+
RUN cd /tmp && \
77+
git clone -q ${RUNNERREPO} && \
78+
cd runner && \
79+
git checkout main -b build && \
80+
git apply /tmp/runner.patch && \
81+
sed -i'' -e /version/s/8......\"$/${SDK}.0.100\"/ src/global.json
82+
83+
84+
RUN cd /tmp/runner/src && \
85+
./dev.sh layout && \
86+
./dev.sh package && \
87+
./dev.sh test && \
88+
rm -rf /root/.dotnet /root/.nuget
89+
90+
RUN useradd -c "Action Runner" -m runner && \
91+
usermod -L runner && \
92+
echo " runner ALL=(ALL) NOPASSWD: ALL" >/etc/sudoers.d/runner
93+
94+
RUN mkdir -p /opt/runner && \
95+
tar -xf /tmp/runner/_package/*.tar.gz -C /opt/runner && \
96+
chown -R runner:runner /opt/runner && \
97+
su -c "/opt/runner/config.sh --version" runner
98+
99+
RUN apt-get -qq -y install cmake make automake autoconf m4 gcc-12-base libtool
100+
101+
RUN rm -rf /tmp/runner /tmp/runner.patch
102+
103+
USER runner
104+
105+
63106
# Download and extract GitHub Actions Runner
64107
#RUN curl -L https://github.com/actions/runner/releases/download/v2.317.0/actions-runner-linux-x64-2.317.0.tar.gz | tar -xz

0 commit comments

Comments
 (0)