changelog shortlog graph tags branches changeset files revisions annotate raw help

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

changeset 55: 2e515a33787e
parent: 3acc3526d836
child: 74e69c49e525
author: ellis <ellis@rwest.io>
date: Wed, 03 Jan 2024 16:40:25 -0500
permissions: -rwxr-xr-x
description: quicklisp patching
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 perl llvm clang
10 buildah run $id mkdir /store
11 buildah run $id mkdir /stash
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 config --env QUICKLISP_ADD_TO_INIT_FILE=true
18 buildah run --net host $id sh -c 'make worker -j4'
19 buildah run --net host $id sh -c 'scripts/install-cargo-tools.sh'
20 buildah run --net host $id sh -c 'make clean'
21 buildah add $id etc/sbclrc /etc/sbclrc # add this AFTER building sbcl
22 buildah config --workingdir /stash $id
23 buildah commit $id ci-worker