changelog shortlog graph tags branches changeset files revisions annotate raw help

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

changeset 46: 114fd45076cf
parent: e627a4f4046a
child: 276ac5b5d1fa
author: ellis <ellis@rwest.io>
date: Tue, 02 Jan 2024 22:17:10 -0500
permissions: -rwxr-xr-x
description: 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 alik -D -k /etc/skel
9 buildah run $id adduser demon -D -k /etc/skel
10 buildah run $id apk add build-base zstd-dev sbcl curl make git linux-headers cargo openssl perl
11 buildah config --workingdir /home/demon $id
12 buildah config --volume /mnt/y $id
13 buildah run --net host $id hg clone https://vc.compiler.company/comp/infra
14 buildah run --net host $id sh -c 'make -C infra rocksdb-install'
15 buildah run --net host $id sh -c 'make -C infra sbcl-install'
16 buildah run --net host $id sh -c 'make -C infra ts-langs-install'
17 buildah run --net host $id sh -c 'make -C infra dist/lisp/fasl'
18 buildah run --net host $id sh -c 'mv infra/dist/lisp/fasl/* /usr/local/lib/sbcl/'
19 buildah run --net host $id sh -c './infra/scripts/install-cargo-tools.sh'
20 buildah run --net host $id sh -c 'make -C infra clean'
21 buildah config --entrypoint '["/usr/local/bin/sbcl", "--core", "/usr/local/lib/sbcl/prelude.fasl"]' $id
22 buildah commit $id ci-worker