Skip to content

Commit

Permalink
Add arc-runners files (#1309)
Browse files Browse the repository at this point in the history
  • Loading branch information
ebezzi authored Nov 7, 2024
1 parent 1ea21f7 commit f8b1862
Show file tree
Hide file tree
Showing 4 changed files with 93 additions and 0 deletions.
27 changes: 27 additions & 0 deletions ci/Dockerfile
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
22 changes: 22 additions & 0 deletions ci/helm-create.sh
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
19 changes: 19 additions & 0 deletions ci/helm-update.sh
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
25 changes: 25 additions & 0 deletions ci/values.yaml
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

0 comments on commit f8b1862

Please sign in to comment.