Skip to content

Commit

Permalink
Merge pull request #60 from RobertKielty/m2cache
Browse files Browse the repository at this point in the history
adds .m2 cache folder to the list of pvs in the runner tempates
  • Loading branch information
jeefy authored Mar 10, 2025
2 parents 9943f3e + edf3e1d commit da10f13
Show file tree
Hide file tree
Showing 9 changed files with 51 additions and 20 deletions.
17 changes: 11 additions & 6 deletions .github/workflows/test-oracle-runners.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Test oracle-16cpu-64gb-x86-64
name: Test all Oracle Runners

on:
push:
Expand All @@ -7,25 +7,30 @@ on:
workflow_dispatch:

jobs:
test-runner:
runs-on: oracle-16cpu-64gb-x86-64
cncf_ora_rnrs_matrix:
strategy:
matrix:
cncf_runner: [oracle-16cpu-64gb-x86-64, oracle-16cpu-64gb-arm64, oracle-4cpu-16gb-x86-64, oracle-8cpu-32gb-x86-64, oracle-24cpu-384gb-x86-64, oracle-2cpu-8gb-arm64, oracle-32cpu-128gb-arm64]

runs-on: ${{ matrix.cncf_runner }}
steps:
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Run uname to verify architecture
run: uname -a

- name: Run a basic workload
run: |
echo "Testing Oracle Runner"
echo "Testing Oracle runner ${{matrix.cncf_runner}}"
echo "CPU Info:"
lscpu
- name: Run a Docker container
run: |
docker run --rm alpine echo "Docker is working on the runner"
docker run --rm alpine echo "Docker is working on ${{matrix.cncf_runner}}"
- name: Check local disk
run: |
echo "df -h on ${{matrix.cncf_runner}}"
df -h /
19 changes: 12 additions & 7 deletions ci/README.MD
Original file line number Diff line number Diff line change
Expand Up @@ -9,24 +9,29 @@ defined here for CI jobs.
## Custom runners

We have created two custom runners that allow us to run any containerizable CI
job on both x86_64/amd64 and arm63 Architechtures.
job on both x86_64/amd64 and arm64 Architectures.

In a Github Action workflow, you can define multiple jobs and for each of those
jobs you choose a runner.
jobs you choose a runner.

We have defined two 16CPU/64GB runners that can used by adding either of the
following statements to your job definitions:
We have defined two 16CPU/64GB runners that CNCF Projects can use by adding
either of the following statements to your job definitions:

**For an amd64/x86_64 runner use:**
**For an amd64/x86_64 runner you can choose from:**

`runs-on: oracle-4cpu-16gb-x86-64`
`runs-on: oracle-8cpu-32gb-x86-64`
`runs-on: oracle-16cpu-64gb-x86-64`
`runs-on: oracle-24cpu-384gb-x86-64`

**For an arm64 runner**
**For an arm64 runner choose one of:**

`runs-on: oracle-2cpu-8gb-arm64`
`runs-on: oracle-16cpu-64gb-arm64`
`runs-on: oracle-32cpu-128gb-arm64`

## Runner definition

The above runners are defined in this repo <./gha-runner-image/Dockerfile>
The above runners are defined in this [Dockerfile](./gha-runner-image/Dockerfile)

You can review the Dockerfile to see what tools have been added to the runner image.
5 changes: 4 additions & 1 deletion ci/cluster/oci-arm64/runners/16cpu-64gb/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,9 @@ template:
- name: work
mountPath: /home/runner/go
subPath: go
- name: work
mountPath: /home/runner/.m2
subPath: .m2
- name: dind
image: docker:dind
args:
Expand Down Expand Up @@ -234,4 +237,4 @@ template:
storageClassName: oci-bv
resources:
requests:
storage: 10Gi
storage: 10Gi
5 changes: 4 additions & 1 deletion ci/cluster/oci-arm64/runners/2cpu-8gb/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,9 @@ template:
- name: work
mountPath: /home/runner/go
subPath: go
- name: work
mountPath: /home/runner/.m2
subPath: .m2
- name: dind
image: docker:dind
args:
Expand Down Expand Up @@ -234,4 +237,4 @@ template:
storageClassName: oci-bv
resources:
requests:
storage: 10Gi
storage: 10Gi
5 changes: 4 additions & 1 deletion ci/cluster/oci-arm64/runners/32cpu-128gb/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,9 @@ template:
- name: work
mountPath: /home/runner/go
subPath: go
- name: work
mountPath: /home/runner/.m2
subPath: .m2
- name: dind
image: docker:dind
args:
Expand Down Expand Up @@ -234,4 +237,4 @@ template:
storageClassName: oci-bv
resources:
requests:
storage: 10Gi
storage: 10Gi
5 changes: 4 additions & 1 deletion ci/cluster/oci/runners/16cpu-64gb/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,9 @@ template:
- name: work
mountPath: /home/runner/go
subPath: go
- name: work
mountPath: /home/runner/.m2
subPath: .m2
- name: dind
image: docker:dind
args:
Expand Down Expand Up @@ -234,4 +237,4 @@ template:
storageClassName: oci-bv
resources:
requests:
storage: 10Gi
storage: 10Gi
5 changes: 4 additions & 1 deletion ci/cluster/oci/runners/24cpu-384gb/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,9 @@ template:
- name: work
mountPath: /home/runner/go
subPath: go
- name: work
mountPath: /home/runner/.m2
subPath: .m2
- name: dind
image: docker:dind
args:
Expand Down Expand Up @@ -234,4 +237,4 @@ template:
storageClassName: oci-bv
resources:
requests:
storage: 10Gi
storage: 10Gi
5 changes: 4 additions & 1 deletion ci/cluster/oci/runners/4cpu-16gb/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,9 @@ template:
- name: work
mountPath: /home/runner/go
subPath: go
- name: work
mountPath: /home/runner/.m2
subPath: .m2
- name: dind
image: docker:dind
args:
Expand Down Expand Up @@ -234,4 +237,4 @@ template:
storageClassName: oci-bv
resources:
requests:
storage: 10Gi
storage: 10Gi
5 changes: 4 additions & 1 deletion ci/cluster/oci/runners/8cpu-32gb/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,9 @@ template:
- name: work
mountPath: /home/runner/go
subPath: go
- name: work
mountPath: /home/runner/.m2
subPath: .m2
- name: dind
image: docker:dind
args:
Expand Down Expand Up @@ -234,4 +237,4 @@ template:
storageClassName: oci-bv
resources:
requests:
storage: 10Gi
storage: 10Gi

0 comments on commit da10f13

Please sign in to comment.