# HG changeset patch # User ellis # Date 1703921236 18000 # Node ID 0be8229292a9fd174605bcb9086c521d88ea22cb # Parent 4e73da2d9c63ffcba21d0063719a20790a3462ce tweakin diff -r 4e73da2d9c63 -r 0be8229292a9 virt/build-box-base.sh --- a/virt/build-box-base.sh Sat Dec 30 02:19:39 2023 -0500 +++ b/virt/build-box-base.sh Sat Dec 30 02:27:16 2023 -0500 @@ -3,7 +3,7 @@ # buildah add $id /mnt/y/lab /var/local/lab buildah run $id useradd -ms /bin/bash $USER buildah run $id mkdir -p /home/$USER/lab /var/local/data -buildah run --net host $id pacman -Syu git sbcl base-devel zstd texlive --noconfirm +buildah run --net host $id pacman -Syu make git sbcl base-devel zstd texlive llvm curl --noconfirm buildah run --net host $id hg clone https://vc.compiler.company/comp/core /usr/src/core buildah run --net host $id hg clone https://vc.compiler.company/comp/infra /usr/src/infra buildah config --workingdir /home/$USER $id diff -r 4e73da2d9c63 -r 0be8229292a9 virt/build-demo.sh --- a/virt/build-demo.sh Sat Dec 30 02:19:39 2023 -0500 +++ b/virt/build-demo.sh Sat Dec 30 02:27:16 2023 -0500 @@ -1,12 +1,7 @@ #!/usr/bin/env bash -id=$(buildah from archlinux-base) -buildah run $id useradd -ms /bin/bash $USER -buildah run $id mkdir -p /home/$USER/lab /var/local/data -buildah run --net host $id pacman -Syu make git zstd curl sbcl base-devel llvm --noconfirm -buildah run --net host $id hg clone https://vc.compiler.company/comp/core /usr/src/core -buildah run --net host $id hg clone https://vc.compiler.company/comp/infra /usr/src/infra +id=$(buildah from box-base) buildah run --net host $id hg clone https://vc.compiler.company/comp/demo /usr/src/demo buildah run --net host $id /bin/sh -c 'cd /usr/src/infra && make sbcl-install && make rocksdb-install && make ts-langs && make dist/fasl' buildah run $id cp /usr/src/infra/dist/fasl/* /usr/local/lib/sbcl/ -buildah config --workingdir /home/$USER $id +buildah run $id hg clone /usr/src/demo # to /home/$USER buildah commit $id demo diff -r 4e73da2d9c63 -r 0be8229292a9 virt/run.sh --- a/virt/run.sh Sat Dec 30 02:19:39 2023 -0500 +++ b/virt/run.sh Sat Dec 30 02:27:16 2023 -0500 @@ -1,3 +1,4 @@ #!/bin/sh -ports="${1:-8080:80/tcp}" -podman run -dt -p $ports localhost/archlinux-base +box="$1:-demo" +ports="${2:-8080:80/tcp 9090:9090/udp}" +podman run -dt -p $ports localhost/$box