changelog shortlog graph tags branches files raw help

Mercurial > infra / changeset: alpine to the rescue

changeset 33: 727a4cb16360
parent 32: 2a87ac5a25eb
child 34: 04d40f43430e
author: ellis <ellis@rwest.io>
date: Sat, 30 Dec 2023 22:05:20 -0500
files: makefile virt/build-alpine-base.sh virt/build-ci-worker.sh virt/build-demo.sh
description: alpine to the rescue
     1.1--- a/makefile	Sat Dec 30 20:11:16 2023 -0500
     1.2+++ b/makefile	Sat Dec 30 22:05:20 2023 -0500
     1.3@@ -70,10 +70,10 @@
     1.4 	cd $(SBCL_TARGET) && \
     1.5 	echo '"2.4.1+main"' > version.lisp-expr && \
     1.6 	sh make.sh \
     1.7-	  --without-gencgc \
     1.8-	  --with-mark-region-gc \
     1.9+	 # --without-gencgc \
    1.10+	 # --with-mark-region-gc \ # not supported on Alpine, FYI
    1.11+	 # --with-sb-xref-for-internals \ #
    1.12 	  --with-core-compression \
    1.13-	  --with-sb-xref-for-internals \
    1.14 	  --dynamic-space-size=8Gb \
    1.15 	  --fancy
    1.16 sbcl:$(SBCL_TARGET)
     2.1--- a/virt/build-alpine-base.sh	Sat Dec 30 20:11:16 2023 -0500
     2.2+++ b/virt/build-alpine-base.sh	Sat Dec 30 22:05:20 2023 -0500
     2.3@@ -1,5 +1,4 @@
     2.4 #!/usr/bin/env bash
     2.5-
     2.6 id=$(buildah from --pull alpine:latest)
     2.7 buildah run --net host $id apk add --no-cache gnupg openssh mercurial wireguard-tools
     2.8 buildah config --annotation alpine $id
     3.1--- a/virt/build-ci-worker.sh	Sat Dec 30 20:11:16 2023 -0500
     3.2+++ b/virt/build-ci-worker.sh	Sat Dec 30 22:05:20 2023 -0500
     3.3@@ -2,3 +2,15 @@
     3.4 
     3.5 # these should be spawned as needed by a ci-leader box within a
     3.6 # dedicated pod named 'ci'.
     3.7+
     3.8+id=$(buildah from alpine-base)
     3.9+buildah run $id adduser alik -D
    3.10+buildah run $id adduser demon -D
    3.11+buildah run $id apk add zstd-dev sbcl curl make rust git linux-headers
    3.12+buildah config --workingdir /home/demon $id
    3.13+buildah config -l=demo $id
    3.14+buildah run --net host $id hg clone https://vc.compiler.company/comp/core
    3.15+buildah run --net host $id hg clone https://vc.compiler.company/comp/infra
    3.16+buildah run --net host $id sh -c 'cd infra && make sbcl-install'
    3.17+# buildah config --entrypoint 
    3.18+buildah commit $id ci-worker
     4.1--- a/virt/build-demo.sh	Sat Dec 30 20:11:16 2023 -0500
     4.2+++ b/virt/build-demo.sh	Sat Dec 30 22:05:20 2023 -0500
     4.3@@ -1,16 +1,12 @@
     4.4 #!/usr/bin/env bash
     4.5-DIST=dist
     4.6 id=$(buildah from alpine-base)
     4.7+buildah config --workingdir /home/demo $id
     4.8+buildah config -l=demo $id
     4.9 buildah run $id adduser demo
    4.10-buildah run $id addgroup demo
    4.11-buildah config --workingdir /home/demo --user demo -l=demo
    4.12-buildah copy $id dist/sbcl
    4.13-buildah copy $id dist/fasl/* sbcl
    4.14-buildah copy $id dist/rocksdb/include/* /usr/local/include/
    4.15-buildah copy $id dist/rocksdb/librocksdb.so* /usr/local/lib/
    4.16+buildah copy $id dist/sbcl /home/demo/sbcl
    4.17+buildah copy $id dist/fasl/ /home/demo/fasl
    4.18+buildah copy $id dist/rocksdb/librocksdb.so /usr/local/lib/
    4.19 # buildah copy $id dist/tree-sitter/grammar/* /usr/local/share/tree-sitter/
    4.20-buildah run --net host $id /bin/sh -c 'cd infra && make sbcl-install && make rocksdb-install && make ts-langs && make dist/fasl'
    4.21-buildah run $id /bin/sh -c 'cp infra/dist/fasl/* /usr/local/lib/sbcl/'
    4.22 # cleanup
    4.23-buildah config --entrypoint 
    4.24+# buildah config --entrypoint 
    4.25 buildah commit $id demo