changelog shortlog graph tags branches changeset files revisions annotate raw help

Mercurial > infra / virt/build-ci-worker.sh

changeset 33: 727a4cb16360
parent: 2a87ac5a25eb
child: 04d40f43430e
author: ellis <ellis@rwest.io>
date: Sat, 30 Dec 2023 22:05:20 -0500
permissions: -rwxr-xr-x
description: alpine to the rescue
1 #!/usr/bin/env bash
2 
3 # these should be spawned as needed by a ci-leader box within a
4 # dedicated pod named 'ci'.
5 
6 id=$(buildah from alpine-base)
7 buildah run $id adduser alik -D
8 buildah run $id adduser demon -D
9 buildah run $id apk add zstd-dev sbcl curl make rust git linux-headers
10 buildah config --workingdir /home/demon $id
11 buildah config -l=demo $id
12 buildah run --net host $id hg clone https://vc.compiler.company/comp/core
13 buildah run --net host $id hg clone https://vc.compiler.company/comp/infra
14 buildah run --net host $id sh -c 'cd infra && make sbcl-install'
15 # buildah config --entrypoint
16 buildah commit $id ci-worker