You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am attempting to get docker to slim down my github actions runner.
When the GitHub actions runs it runs this code:
while :;
do
cp -f "$DIR"/run-helper.sh.template "$DIR"/run-helper.sh
"$DIR"/run-helper.sh $* &
PID=$!
wait -f $PID
returnCode=$?
if [[ $returnCode -eq 2 ]]; then
echo "Restarting runner..."
else
echo "Exiting runner..."
# Unregister signal handling before exit
trap - INT TERM
# wait for last parts to be logged
wait $PID
exit $returnCode
fi
done
}
Essentially this copies run-helper.sh.template to run-helper.sh
However when I run this using slim build it fails to cp the file.
I have ran this with the option --run-target-as-user --keep-perms as the runner is running under the user 'runner'. However this doesn't change the outcome.
Any thoughts?
The text was updated successfully, but these errors were encountered:
Hi, I'll have to go back and try again.
In the mean time I've given up and moved a different direction.
I can run the image locally without an issue and it connects to github as a runner. I can run everything I need to and it works without issue.
When running it through slimbuild I end up with an image 1/4 of the size but as the GitHub runner won't start it contains none of the things that I need in the image. In the next couple of days I'll try again and see if I can get you more details.
I am attempting to get docker to slim down my github actions runner.
When the GitHub actions runs it runs this code:
while :;
do
cp -f "$DIR"/run-helper.sh.template "$DIR"/run-helper.sh
"$DIR"/run-helper.sh $* &
PID=$!
wait -f $PID
returnCode=$?
if [[ $returnCode -eq 2 ]]; then
echo "Restarting runner..."
else
echo "Exiting runner..."
# Unregister signal handling before exit
trap - INT TERM
# wait for last parts to be logged
wait $PID
exit $returnCode
fi
done
}
Essentially this copies run-helper.sh.template to run-helper.sh
However when I run this using slim build it fails to cp the file.
I have ran this with the option --run-target-as-user --keep-perms as the runner is running under the user 'runner'. However this doesn't change the outcome.
Any thoughts?
The text was updated successfully, but these errors were encountered: