changeset 31: |
0be8229292a9 |
parent 30: |
4e73da2d9c63 |
child 32: |
2a87ac5a25eb |
author: |
ellis <ellis@rwest.io> |
date: |
Sat, 30 Dec 2023 02:27:16 -0500 |
files: |
virt/build-box-base.sh virt/build-demo.sh virt/run.sh |
description: |
tweakin |
1.1--- a/virt/build-box-base.sh Sat Dec 30 02:19:39 2023 -0500
1.2+++ b/virt/build-box-base.sh Sat Dec 30 02:27:16 2023 -0500
1.3@@ -3,7 +3,7 @@
1.4 # buildah add $id /mnt/y/lab /var/local/lab
1.5 buildah run $id useradd -ms /bin/bash $USER
1.6 buildah run $id mkdir -p /home/$USER/lab /var/local/data
1.7-buildah run --net host $id pacman -Syu git sbcl base-devel zstd texlive --noconfirm
1.8+buildah run --net host $id pacman -Syu make git sbcl base-devel zstd texlive llvm curl --noconfirm
1.9 buildah run --net host $id hg clone https://vc.compiler.company/comp/core /usr/src/core
1.10 buildah run --net host $id hg clone https://vc.compiler.company/comp/infra /usr/src/infra
1.11 buildah config --workingdir /home/$USER $id
2.1--- a/virt/build-demo.sh Sat Dec 30 02:19:39 2023 -0500
2.2+++ b/virt/build-demo.sh Sat Dec 30 02:27:16 2023 -0500
2.3@@ -1,12 +1,7 @@
2.4 #!/usr/bin/env bash
2.5-id=$(buildah from archlinux-base)
2.6-buildah run $id useradd -ms /bin/bash $USER
2.7-buildah run $id mkdir -p /home/$USER/lab /var/local/data
2.8-buildah run --net host $id pacman -Syu make git zstd curl sbcl base-devel llvm --noconfirm
2.9-buildah run --net host $id hg clone https://vc.compiler.company/comp/core /usr/src/core
2.10-buildah run --net host $id hg clone https://vc.compiler.company/comp/infra /usr/src/infra
2.11+id=$(buildah from box-base)
2.12 buildah run --net host $id hg clone https://vc.compiler.company/comp/demo /usr/src/demo
2.13 buildah run --net host $id /bin/sh -c 'cd /usr/src/infra && make sbcl-install && make rocksdb-install && make ts-langs && make dist/fasl'
2.14 buildah run $id cp /usr/src/infra/dist/fasl/* /usr/local/lib/sbcl/
2.15-buildah config --workingdir /home/$USER $id
2.16+buildah run $id hg clone /usr/src/demo # to /home/$USER
2.17 buildah commit $id demo
3.1--- a/virt/run.sh Sat Dec 30 02:19:39 2023 -0500
3.2+++ b/virt/run.sh Sat Dec 30 02:27:16 2023 -0500
3.3@@ -1,3 +1,4 @@
3.4 #!/bin/sh
3.5-ports="${1:-8080:80/tcp}"
3.6-podman run -dt -p $ports localhost/archlinux-base
3.7+box="$1:-demo"
3.8+ports="${2:-8080:80/tcp 9090:9090/udp}"
3.9+podman run -dt -p $ports localhost/$box