save current
This commit is contained in:
parent
6bfe24d054
commit
6b7d2b5215
2 changed files with 22 additions and 16 deletions
|
|
@ -1,4 +1,6 @@
|
||||||
FROM library/python:3.12-bullseye
|
FROM library/python:3.12-bullseye
|
||||||
|
# Personal access token 'mist _runner'
|
||||||
|
ENV GITHUB_PAT=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
|
||||||
|
|
||||||
ARG USER=vscode
|
ARG USER=vscode
|
||||||
ARG DEBIAN_FRONTEND=noninteractive
|
ARG DEBIAN_FRONTEND=noninteractive
|
||||||
|
|
|
||||||
|
|
@ -1,29 +1,33 @@
|
||||||
#!/bin/bash
|
# # !/bin/bash
|
||||||
set -e
|
# set -ex
|
||||||
|
|
||||||
echo "=== Enable MicroK8s features ==="
|
# echo "=== Enable MicroK8s features ==="
|
||||||
sudo microk8s enable dns rbac hostpath-storage host-access
|
# sudo microk8s enable dns rbac hostpath-storage host-access
|
||||||
sudo microk8s enable metrics-server
|
# sudo microk8s enable metrics-server
|
||||||
|
|
||||||
|
|
||||||
echo "=== Configure kubectl for MicroK8s ==="
|
# echo "=== Configure kubectl for MicroK8s ==="
|
||||||
microk8s kubectl config view --raw > ~/.kube/config
|
# microk8s kubectl config view --raw > ~/.kube/config
|
||||||
chmod 600 ~/.kube/config
|
# chmod 600 ~/.kube/config
|
||||||
sudo usermod -aG microk8s $USER
|
# sudo usermod -aG microk8s $USER
|
||||||
sudo chown -f -R $USER ~/.kube
|
# sudo chown -f -R $USER ~/.kube
|
||||||
newgrp microk8s
|
|
||||||
|
|
||||||
echo "=== Install Scale Set ARC Controller ==="
|
# echo "=== Install Scale Set ARC Controller ==="
|
||||||
helm install arc \
|
# helm install arc \
|
||||||
--namespace arc-systems \
|
# --namespace arc-systems \
|
||||||
--create-namespace \
|
# --create-namespace \
|
||||||
oci://ghcr.io/actions/actions-runner-controller-charts/gha-runner-scale-set-controller
|
# oci://ghcr.io/actions/actions-runner-controller-charts/gha-runner-scale-set-controller
|
||||||
|
|
||||||
echo "=== Install MealCraft Runner Scale Set ==="
|
echo "=== Install MealCraft Runner Scale Set ==="
|
||||||
helm install mealcraft-runners \
|
helm install mealcraft-runners \
|
||||||
--namespace arc-systems \
|
--namespace arc-systems \
|
||||||
|
--set containerMode.type=kubernetes \
|
||||||
|
--set containerMode.kubernetesModeWorkVolumeClaim.accessModes[0]=ReadWriteOnce \
|
||||||
|
--set containerMode.kubernetesModeWorkVolumeClaim.storageClassName=microk8s-hostpath \
|
||||||
|
--set containerMode.kubernetesModeWorkVolumeClaim.resources.requests.storage=1Gi \
|
||||||
--set githubConfigUrl=https://github.com/MealCraft \
|
--set githubConfigUrl=https://github.com/MealCraft \
|
||||||
--set githubConfigSecret.github_token=$GITHUB_PAT \
|
--set githubConfigSecret.github_token=$GITHUB_PAT \
|
||||||
oci://ghcr.io/actions/actions-runner-controller-charts/gha-runner-scale-set
|
oci://ghcr.io/actions/actions-runner-controller-charts/gha-runner-scale-set
|
||||||
|
|
||||||
|
|
||||||
echo "=== ARC installation complete ==="
|
echo "=== ARC installation complete ==="
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue