changelog shortlog graph tags branches files raw help

Mercurial > infra / changeset: podman stuff

changeset 44: e50b2e3873cc
parent 43: 16e13f034efc
child 45: e627a4f4046a
author: ellis <ellis@rwest.io>
date: Sun, 31 Dec 2023 02:33:48 -0500
files: etc/skel/.skelrc makefile scripts/bundle-dir.sh scripts/cargo-install.sh scripts/sbcl-make-bin.sh virt/build-heptapod-runner.sh virt/build-heptapod.sh virt/build-packy.sh virt/build-pod.sh virt/build-vc-pod.sh virt/start-podman-service.sh
description: podman stuff
     2.1--- a/makefile	Sun Dec 31 00:31:25 2023 -0500
     2.2+++ b/makefile	Sun Dec 31 02:33:48 2023 -0500
     2.3@@ -21,7 +21,7 @@
     2.4 
     2.5 # init:sbcl rust emacs rocksdb comp virt;
     2.6 # dist/linux dist/rust dist/bundle
     2.7-all:dist/cdn dist/comp dist/fasl dist/sbcl dist/rocksdb dist/emacs
     2.8+all:dist/cdn dist/comp dist/lisp dist/rust dist/sbcl dist/rocksdb dist/emacs
     2.9 clean:;rm -rf $(B) $(D)
    2.10 $(B):;mkdir -pv $@/src
    2.11 $(D):;mkdir -pv $@
    2.12@@ -131,7 +131,8 @@
    2.13 virt:pod box bbdb vc
    2.14 
    2.15 ### Dist
    2.16-dist/bundle:scripts/bundle-dir.sh $(D)
    2.17+dist/bundle:scripts/bundle-dir.sh comp
    2.18+	mkdir -pv $@
    2.19 	$<
    2.20 
    2.21 dist/cdn:cdn $(D)
    2.22@@ -155,15 +156,39 @@
    2.23 
    2.24 dist/rust:rust-build $(D);
    2.25 	cd $(RUST_TARGET) && x dist
    2.26+dist/rust/bin:scripts/cargo-install.sh comp
    2.27+	mkdir -pv $@
    2.28+	$< "$(COMP_TARGET)/core/rust/app/cli/alik" "dist/rust"
    2.29+	$< "$(COMP_TARGET)/core/rust/app/cli/krypt" "dist/rust"
    2.30+	$< "$(COMP_TARGET)/core/rust/app/cli/tz" "dist/rust"
    2.31+	$< "$(COMP_TARGET)/core/rust/app/cli/cc-init" "dist/rust"
    2.32+	$< "$(COMP_TARGET)/core/rust/app/cli/mailman" "dist/rust"
    2.33 
    2.34 dist/emacs:emacs-build $(D);
    2.35 
    2.36-dist/fasl:scripts/sbcl-save-core.sh quicklisp-install
    2.37+dist/lisp/fasl:scripts/sbcl-save-core.sh quicklisp-install
    2.38 	mkdir -pv $@
    2.39 	$< "$@/std.core"
    2.40 	$< "$@/prelude.core" "(mapc #'ql:quickload \
    2.41 	(list :nlp :rdb :organ :packy :skel :obj :net :parse :pod :dat :log :packy :rt :syn :xdb))"
    2.42 
    2.43+dist/lisp/bin:scripts/sbcl-make-bin.sh comp
    2.44+	$< bin/skel
    2.45+	cp $(COMP_TARGET)/core/lisp/app/bin/skel $@
    2.46+	rm -f $(COMP_TARGET)/core/lisp/app/bin/skel.fasl
    2.47+	$< bin/organ
    2.48+	cp $(COMP_TARGET)/core/lisp/app/bin/organ $@
    2.49+	rm -f $(COMP_TARGET)/core/lisp/app/bin/organ.fasl
    2.50+	$< bin/homer
    2.51+	cp $(COMP_TARGET)/core/lisp/app/bin/homer $@
    2.52+	rm -f $(COMP_TARGET)/core/lisp/app/bin/homer.fasl
    2.53+	$< bin/packy
    2.54+	cp $(COMP_TARGET)/core/lisp/app/bin/packy $@
    2.55+	rm -f $(COMP_TARGET)/core/lisp/app/bin/packy.fasl
    2.56+	$< bin/rdb
    2.57+	cp $(COMP_TARGET)/core/lisp/app/bin/rdb $@
    2.58+	rm -f $(COMP_TARGET)/core/lisp/app/bin/rdb.fasl
    2.59+
    2.60 dist/comp:comp
    2.61 	mkdir -pv $@
    2.62 	cp -r $(COMP_TARGET)/{org,core,infra,demo,nas-t} $@
     3.1--- a/scripts/bundle-dir.sh	Sun Dec 31 00:31:25 2023 -0500
     3.2+++ b/scripts/bundle-dir.sh	Sun Dec 31 02:33:48 2023 -0500
     3.3@@ -1,7 +1,7 @@
     3.4 #!/usr/bin/env bash
     3.5 # bundle a tar.zst archive of Mercurial repositories.
     3.6-WD=/mnt/y/data/packy
     3.7-#WD=dist
     3.8+#WD=/mnt/y/data/packy
     3.9+WD="${2:-$HOME/dev/comp/infra/dist}"
    3.10 OUT=$WD/bundle/src
    3.11 SRC_PATH=$HOME/dev/comp
    3.12 BUNDLE_NAME="${1:-comp}"
     4.1--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     4.2+++ b/scripts/cargo-install.sh	Sun Dec 31 02:33:48 2023 -0500
     4.3@@ -0,0 +1,2 @@
     4.4+#!/usr/bin/env bash
     4.5+cargo install --path "${1}" --root "${2:-dist/rust}"
     5.1--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     5.2+++ b/scripts/sbcl-make-bin.sh	Sun Dec 31 02:33:48 2023 -0500
     5.3@@ -0,0 +1,8 @@
     5.4+#!/usr/bin/env bash
     5.5+FORM="(progn (ql:quickload :std) "
     5.6+FORM+=" (ql:quickload \""
     5.7+FORM+="${1:-bin/skel}"
     5.8+FORM+="\") (asdf:make \""
     5.9+FORM+="${1:-bin/skel}"
    5.10+FORM+="\"))"
    5.11+sbcl --noinform --non-interactive --eval "$FORM"
     6.1--- a/virt/build-heptapod-runner.sh	Sun Dec 31 00:31:25 2023 -0500
     6.2+++ b/virt/build-heptapod-runner.sh	Sun Dec 31 02:33:48 2023 -0500
     6.3@@ -1,5 +1,5 @@
     6.4 #!/bin/sh
     6.5 id=$(buildah from --pull docker.io/octobus/heptapod-runner:latest)
     6.6-buildah config --annotation heptapod $id
     6.7+buildah config --annotation vc $id
     6.8 buildah config --author='Richard Westhaver' $id
     6.9 buildah commit $id heptapod-runner
     7.1--- a/virt/build-heptapod.sh	Sun Dec 31 00:31:25 2023 -0500
     7.2+++ b/virt/build-heptapod.sh	Sun Dec 31 02:33:48 2023 -0500
     7.3@@ -1,5 +1,5 @@
     7.4 #!/bin/sh
     7.5 id=$(buildah from --pull docker.io/octobus/heptapod:latest)
     7.6-buildah config --annotation heptapod $id
     7.7+buildah config --annotation vc $id
     7.8 buildah config --author='Richard Westhaver' $id
     7.9 buildah commit $id heptapod
     8.1--- a/virt/build-packy.sh	Sun Dec 31 00:31:25 2023 -0500
     8.2+++ b/virt/build-packy.sh	Sun Dec 31 02:33:48 2023 -0500
     8.3@@ -1,1 +1,11 @@
     8.4 #!/usr/bin/env bash
     8.5+id=$(buildah from alpine-base)
     8.6+buildah copy $id etc/skel /etc/skel
     8.7+buildah run $id adduser $USER -D
     8.8+buildah run --net host $id apk add --no-cache zstd-dev make git linux-headers cargo openssl
     8.9+# requires: rocksdb,zstd
    8.10+# core dependencies: packy,packy-registry.service,krypt,alik,tz
    8.11+buildah config --workingdir /home/demo $id --user $USER
    8.12+buildah config -l=packy $id
    8.13+# buildah config --entrypoint 
    8.14+buildah commit $id packy
     9.1--- a/virt/build-pod.sh	Sun Dec 31 00:31:25 2023 -0500
     9.2+++ b/virt/build-pod.sh	Sun Dec 31 02:33:48 2023 -0500
     9.3@@ -5,4 +5,4 @@
     9.4 # podman container attach --latest
     9.5 # sudo podman ps -ap
     9.6 NAME=${1:-comp}
     9.7-podman pod create --name $NAME
     9.8+podman pod create --name $NAME --replace
    10.1--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    10.2+++ b/virt/build-vc-pod.sh	Sun Dec 31 02:33:48 2023 -0500
    10.3@@ -0,0 +1,2 @@
    10.4+#!/usr/bin/env bash
    10.5+podman pod clone "comp" "vc" --restart=always
    11.1--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    11.2+++ b/virt/start-podman-service.sh	Sun Dec 31 02:33:48 2023 -0500
    11.3@@ -0,0 +1,3 @@
    11.4+#!/usr/bin/env bash
    11.5+# tcp://localhost:4282
    11.6+podman system service --time=0 unix:///run/user/$UID/podman.sock # --cors