-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Set default shell in Dockerfile Set default python to 3.10 Update README.md and GH action workflow
- Loading branch information
1 parent
c0d12b0
commit c8eef26
Showing
6 changed files
with
93 additions
and
45 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
** | ||
!./scripts | ||
!dockerfile | ||
!Dockerfile |
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,10 +1,28 @@ | ||
name: Local runner test | ||
|
||
on: | ||
workflow_dispatch: | ||
push: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
test-runner: | ||
runs-on: [self-hosted] | ||
runs-on: docker-node | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Verify 'curl' | ||
run: curl --version | ||
- name: Verify 'git' | ||
run: git --version | ||
- name: Verify 'jq' | ||
run: jq --version | ||
- name: Verify 'python' | ||
run: python -V | ||
- name: Verify 'rust' | ||
run: rustc --version | ||
- name: Verify 'go' | ||
run: go version | ||
- name: Verify 'node' | ||
run: | | ||
node --version | ||
npm --version |
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,21 +1,30 @@ | ||
# docker-github-runner-linux | ||
|
||
Repository for building a self hosted GitHub runner as a ubuntu linux container | ||
Repository for building a self-hosted GitHub runner as a ubuntu linux container | ||
|
||
### Build | ||
|
||
``` | ||
```shell | ||
docker build --build-arg RUNNER_VERSION=2.319.1 -t runner . | ||
``` | ||
|
||
### Run | ||
|
||
Set latest `RUNNER_VERSION` | ||
|
||
```shell | ||
export RUNNER_VERSION=$(curl -sL \ | ||
-H "Accept: application/vnd.github+json" \ | ||
-H "X-GitHub-Api-Version: 2022-11-28" \ | ||
https://api.github.com/repos/actions/runner/releases/latest | jq .tag_name --raw-output) | ||
``` | ||
|
||
```shell | ||
docker compose up -d | ||
``` | ||
|
||
### Exec | ||
|
||
``` | ||
```shell | ||
docker exec -it container-name 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
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