changelog shortlog graph tags branches files raw help

Mercurial > infra / changeset: fix

changeset 45: e627a4f4046a
parent 44: e50b2e3873cc
child 46: 114fd45076cf
author: ellis <ellis@rwest.io>
date: Tue, 02 Jan 2024 20:17:01 -0500
files: makefile virt/build-ci-operator.sh virt/build-ci-pod.sh virt/build-ci-worker.sh
description: fix
     1.1--- a/makefile	Sun Dec 31 02:33:48 2023 -0500
     1.2+++ b/makefile	Tue Jan 02 20:17:01 2024 -0500
     1.3@@ -61,7 +61,7 @@
     1.4 
     1.5 rocksdb-install:$(ROCKSDB_TARGET)
     1.6 	cd $< && cp -rf $(ROCKSDB_TARGET)/include/* /usr/local/include/ && \
     1.7-	cp -f $(ROCKSDB_TARGET)/librocksdb.{so,dylib}* /usr/local/include/
     1.8+	cp -f $(ROCKSDB_TARGET)/librocksdb.* /usr/local/include/
     1.9 
    1.10 ### SBCL
    1.11 SBCL_TARGET:=build/src/sbcl
     2.1--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.2+++ b/virt/build-ci-operator.sh	Tue Jan 02 20:17:01 2024 -0500
     2.3@@ -0,0 +1,8 @@
     2.4+#!/usr/bin/env bash
     2.5+id=$(buildah from ci-worker)
     2.6+buildah add $id etc/skel /etc
     2.7+buildah run $id adduser $USER -D
     2.8+buildah config --workingdir /home/$USER $id
     2.9+buildah config --volume /mnt/y $id
    2.10+buildah config --entrypoint '["/usr/local/bin/sbcl", "--core", "/usr/local/lib/sbcl/prelude.fasl"]' $id
    2.11+buildah commit $id ci-operator
     3.1--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     3.2+++ b/virt/build-ci-pod.sh	Tue Jan 02 20:17:01 2024 -0500
     3.3@@ -0,0 +1,2 @@
     3.4+#!/usr/bin/env bash
     3.5+podman pod create --name ci --restart=always --infra-name=ci-operator -l=operator
     4.1--- a/virt/build-ci-worker.sh	Sun Dec 31 02:33:48 2023 -0500
     4.2+++ b/virt/build-ci-worker.sh	Tue Jan 02 20:17:01 2024 -0500
     4.3@@ -4,20 +4,19 @@
     4.4 # dedicated pod named 'ci'.
     4.5 
     4.6 id=$(buildah from alpine-base)
     4.7-buildah copy $id etc/skel /etc/skel
     4.8+buildah add $id etc/skel /etc
     4.9 buildah run $id adduser alik -D
    4.10 buildah run $id adduser demon -D -k /etc/skel
    4.11 buildah run $id apk add build-base zstd-dev sbcl curl make git linux-headers cargo openssl perl
    4.12 buildah config --workingdir /home/demon $id
    4.13-buildah config -l=demo $id
    4.14-buildah run --net host $id hg clone https://vc.compiler.company/comp/core
    4.15+buildah config --volume /mnt/y $id
    4.16 buildah run --net host $id hg clone https://vc.compiler.company/comp/infra
    4.17-buildah run --net host $id sh -c 'cd infra && make rocksdb-install'
    4.18-buildah run --net host $id sh -c 'cd infra && make sbcl-install'
    4.19-buildah run --net host $id sh -c 'cd infra && make ts-langs'
    4.20-buildah run --net host $id sh -c 'cd infra && make dist/fasl'
    4.21-buildah run --net host $id sh -c 'mv infra/dist/fasl/* /usr/local/lib/sbcl/'
    4.22+buildah run --net host $id sh -c 'make -C infra rocksdb-install'
    4.23+buildah run --net host $id sh -c 'make -C infra sbcl-install'
    4.24+buildah run --net host $id sh -c 'make -C infra ts-langs'
    4.25+buildah run --net host $id sh -c 'make -C infra dist/lisp/fasl'
    4.26+buildah run --net host $id sh -c 'mv infra/dist/lisp/fasl/* /usr/local/lib/sbcl/'
    4.27 buildah run --net host $id sh -c './infra/scripts/install-cargo-tools.sh'
    4.28-buildah run --net host $id sh -c 'cd infra && make clean'
    4.29-buildah config --entrypoint '["sbcl", "--core", "/usr/local/lib/sbcl/prelude.fasl"]' $id
    4.30+buildah run --net host $id sh -c 'make -C clean'
    4.31+buildah config --entrypoint '["/usr/local/bin/sbcl", "--core", "/usr/local/lib/sbcl/prelude.fasl"]' $id
    4.32 buildah commit $id ci-worker