Skip to content

Commit fb42711

Browse files
committed
k8s/arc: init custom runner-image
1 parent a455595 commit fb42711

File tree

3 files changed

+22
-0
lines changed

3 files changed

+22
-0
lines changed
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
FROM ghcr.io/actions/actions-runner:2.321.0
2+
3+
ARG DEBIAN_FRONTEND=noninteractive
4+
ARG TARGET_TOOLSET_REV=45226c1116cdb863fcc3804d00c9aaaedb270b52
5+
6+
COPY install_pkgs.sh toolset-2204.json.sha256sum /home/runner
7+
8+
RUN curl -LO https://github.com/actions/runner-images/raw/${TARGET_TOOLSET_REV}/images/ubuntu/toolsets/toolset-2204.json && \
9+
sha256sum --check < toolset-2204.json.sha256sum
10+
11+
RUN sudo apt-get update -y
12+
13+
RUN ./install_pkgs.sh toolset-2204.json
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#!/bin/bash
2+
set -exo pipefail
3+
4+
declare -r toolset=$1
5+
6+
package_set=$(cat $toolset | jq -r "(.apt.vital_packages + .apt.common_packages + .apt.cmd_packages)[]")
7+
8+
sudo apt-get install --no-install-recommends $package_set -y
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
e97c4e7ed790334c5068cb85f06c19e7c72644cef9932050cd1ba60c086b33d0 toolset-2204.json

0 commit comments

Comments
 (0)