Offline self-hosted runners in codespace after postCreateCommand #48420
-
Select Topic AreaShow & Tell BodyContextI'm working on this repo. In my .devcontainer.json "postCreateCommand": ".devcontainer/scripts/startup.sh",
"postStartCommand": ".devcontainer/scripts/startup.sh" startup.sh echo "Configure GitHub Runner"
./config.sh remove --token $SELF_HOSTED_RUNNER_TOKEN
./config.sh --url https://github.com/$GITHUB_REPOSITORY --unattended --token $SELF_HOSTED_RUNNER_TOKEN --name $RepositoryName --labels "self-hosted,Linux,X64,$RepositoryName"
echo "Start GitHub Runner"
nohup ./run.sh & > _diag/runner.log ProblemWhen I create new GitHub Codespace, my runners appears in QuestionHow to start GitHub self-hosted runner on devcontainer startup so, it's in Reproducehttps://github.com/ldynia/codespace-minikube |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
This is my Stackoverflow Answare. Apparently, github self-hosted runner doesn't like to be run as a background process! The problem was I ended up running my Don't
Do
|
Beta Was this translation helpful? Give feedback.
This is my Stackoverflow Answare. Apparently, github self-hosted runner doesn't like to be run as a background process! The problem was
&
innohup
command.I ended up running my
startup.sh
script only withpostStartCommand
and, github's self hosted runnerrun.sh
script withoutnohup
Don't
Do