File tree Expand file tree Collapse file tree 4 files changed +4
-15
lines changed
ppc64le/self-hosted-builder Expand file tree Collapse file tree 4 files changed +4
-15
lines changed Original file line number Diff line number Diff line change @@ -33,6 +33,6 @@ if ! pytest "$PACKAGE_NAME/test/test_utils.py"; then
3333 echo " ------------------$PACKAGE_NAME :install_success_but_test_fails---------------------"
3434 exit 2
3535else
36- echo " ------------------$PACKAGE_NAME :install_ & _test_both_success -------------------------"
36+ echo " ------------------$PACKAGE_NAME :install_and_test_both_success -------------------------"
3737 exit 0
3838fi
Original file line number Diff line number Diff line change 11[Unit]
22Description =Self-Hosted IBM power Github Actions Runner
3- #After=network.target docker.service
4- #Requires=docker.service
53StartLimitIntervalSec =0
64
75[Service]
@@ -15,9 +13,6 @@ ExecStartPre=-/usr/bin/docker rm --force actions-runner.%i
1513ExecStartPre =-/usr/local/bin/gh_token_generator.sh /etc/actions-runner/%i/appid.env /etc/actions-runner/%i/installid.env /etc/actions-runner/%i/key_private.pem /etc/actions-runner/%i/ghtoken.env
1614ExecStartPre =-/usr/local/bin/gh_cat_token.sh /etc/actions-runner/%i/ghtoken.env /etc/actions-runner/%i/ghtoken.txt
1715
18- # Wait for token to be written to the pipe
19- #ExecStartPre=/bin/bash -c 'while [ ! -s /etc/actions-runner/%i/ghtoken.txt ]; do sleep 1; done'
20-
2116ExecStart =/usr/bin/docker run \
2217 --env-file =/etc/actions-runner/%i/env \
2318 --volume /etc/actions-runner/%i/ghtoken.txt:/run/runner_secret \
Original file line number Diff line number Diff line change @@ -41,7 +41,6 @@ if [ ! -f /run/runner_secret ]; then
4141fi
4242
4343
44-
4544ACCESS_TOKEN=" $( cat /run/runner_secret) "
4645
4746# Generate registration token
@@ -58,7 +57,6 @@ unset ACCESS_TOKEN
5857# it does one job, stops and unregisters
5958registration_token=$( jq --raw-output .token " $token_file " )
6059
61-
6260./config.sh \
6361 --unattended \
6462 --ephemeral \
@@ -69,12 +67,7 @@ registration_token=$(jq --raw-output .token "$token_file")
6967 --labels self-hosted,linux.ppc64le
7068
7169unset registration_token
72- # rm -f "$token_file"
73-
74- # enter into python virtual environment.
75- # build workflows use "python -m pip install ...",
76- # and it doesn't work for non-root user
77- # source venv/bin/activate
70+ rm -f " $token_file "
7871
7972# Run one job.
8073./run.sh
Original file line number Diff line number Diff line change @@ -4,10 +4,11 @@ FROM registry.access.redhat.com/ubi9/ubi:9.3
44# Install necessary dependencies
55RUN dnf install -y \
66 https://dl.fedoraproject.org/pub/epel/epel-release-latest-9.noarch.rpm && \
7- dnf install -y git cmake ninja-build gcc-c++ rust cargo \
7+ dnf install -y git cmake ninja-build gcc-toolset-13 rust cargo \
88 python3 python3-devel && \
99 dnf clean all
1010
11+ RUN source /opt/rh/gcc-toolset-13/enable
1112# Set Python and pip aliases to use Python 3.9
1213RUN ln -sf /usr/bin/python3 /usr/bin/python && \
1314 ln -sf /usr/bin/pip3 /usr/bin/pip
You can’t perform that action at this time.
0 commit comments