-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
93 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,27 @@ | ||
FROM ghcr.io/actions/actions-runner:latest | ||
USER root | ||
|
||
ENV DEBIAN_FRONTEND=noninteractive | ||
|
||
RUN apt-get update | ||
|
||
RUN apt-get -y upgrade | ||
|
||
RUN apt install -y \ | ||
build-essential \ | ||
libxml2-dev \ | ||
libssl-dev \ | ||
libcurl4-openssl-dev \ | ||
cmake \ | ||
curl \ | ||
python3.11 \ | ||
pip \ | ||
python3.11-venv \ | ||
git-all | ||
|
||
RUN apt install -y software-properties-common | ||
RUN add-apt-repository -y ppa:deadsnakes/ppa | ||
RUN apt install -y python3.12 | ||
RUN apt-get update | ||
|
||
USER runner |
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 |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#!/bin/sh | ||
set -euox pipefail | ||
|
||
kubectl config use-context dev-sc | ||
|
||
export INSTALLATION_NAME="sc-dev-64g-runner" | ||
export NAMESPACE_CONTROLLER="sc-dev-arc-systems" | ||
export NAMESPACE_RUNNERS="sc-dev-arc-runners" | ||
export YAML_FILE="values.yaml" | ||
|
||
kubectl create namespace ${NAMESPACE_CONTROLLER} || true | ||
kubectl create namespace ${NAMESPACE_RUNNERS} || true | ||
|
||
helm install arc \ | ||
--namespace "${NAMESPACE_CONTROLLER}" \ | ||
--values "${YAML_FILE}" \ | ||
oci://ghcr.io/actions/actions-runner-controller-charts/gha-runner-scale-set-controller | ||
|
||
helm install "${INSTALLATION_NAME}" \ | ||
--namespace "${NAMESPACE_RUNNERS}" \ | ||
--values "${YAML_FILE}" \ | ||
oci://ghcr.io/actions/actions-runner-controller-charts/gha-runner-scale-set |
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 |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#!/bin/sh | ||
set -euox pipefail | ||
|
||
kubectl config use-context dev-sc | ||
|
||
export INSTALLATION_NAME="sc-dev-64g-runner" | ||
export NAMESPACE_CONTROLLER="sc-dev-arc-systems" | ||
export NAMESPACE_RUNNERS="sc-dev-arc-runners" | ||
export YAML_FILE="values.yaml" | ||
|
||
helm upgrade arc \ | ||
--namespace "${NAMESPACE_CONTROLLER}" \ | ||
--values "${YAML_FILE}" \ | ||
oci://ghcr.io/actions/actions-runner-controller-charts/gha-runner-scale-set-controller | ||
|
||
helm upgrade "${INSTALLATION_NAME}" \ | ||
--namespace "${NAMESPACE_RUNNERS}" \ | ||
--values "${YAML_FILE}" \ | ||
oci://ghcr.io/actions/actions-runner-controller-charts/gha-runner-scale-set |
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 |
---|---|---|
@@ -0,0 +1,25 @@ | ||
template: | ||
metadata: | ||
annotations: | ||
karpenter.sh/do-not-disrupt: "true" | ||
spec: | ||
containers: | ||
- command: | ||
- /home/runner/run.sh | ||
image: public.ecr.aws/r2b9w7i3/cell_census_github_runners:latest | ||
name: runner | ||
resources: | ||
limits: | ||
cpu: 8 | ||
memory: 64Gi | ||
requests: | ||
cpu: 8 | ||
memory: 64Gi | ||
tolerations: | ||
- key: chanzuckerberg/cellxgene-census | ||
operator: "Exists" | ||
effect: "NoSchedule" | ||
nodeSelector: | ||
kubernetes.io/arch: amd64 | ||
githubConfigSecret: gh-app-secret | ||
githubConfigUrl: https://github.com/chanzuckerberg/cellxgene-census |