changelog shortlog graph tags branches changeset files revisions annotate raw help

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

changeset 64: e7719c321e5b
parent: e1061716787e
child: cbd11dc24d4d
author: ellis <ellis@rwest.io>
date: Wed, 03 Jan 2024 21:20:04 -0500
permissions: -rwxr-xr-x
description: worker fix
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 add $id etc/skel/ /etc/skel/
8 buildah run $id adduser worker -D
9 buildah run $id apk add build-base zstd-dev sbcl curl make git linux-headers cargo openssl-dev perl llvm clang pkgconf fbgrab
10 buildah config --volume /store $id
11 buildah config --volume /stash $id
12 buildah run $id mkdir /usr/share/lisp
13 buildah run $id mkdir /usr/local/share/lisp
14 buildah config --volume /store $id
15 buildah run --net host $id hg clone https://vc.compiler.company/comp/infra
16 buildah config --workingdir /infra $id
17 buildah run --net host $id sh -c 'make worker -j4'
18 buildah run --net host $id sh -c 'scripts/install-cargo-tools.sh'
19 buildah run --net host $id sh -c 'make clean'
20 buildah copy $id etc/skel/ /root/
21 buildah copy $id etc/sbclrc /etc/sbclrc
22 buildah config --workingdir /stash $id
23 buildah commit $id ci-worker