changelog shortlog graph tags branches changeset files revisions annotate raw help

Mercurial > infra / virt/build-demo.sh

changeset 33: 727a4cb16360
parent: 2a87ac5a25eb
child: 21e3a05f8c27
author: ellis <ellis@rwest.io>
date: Sat, 30 Dec 2023 22:05:20 -0500
permissions: -rwxr-xr-x
description: alpine to the rescue
1 #!/usr/bin/env bash
2 id=$(buildah from alpine-base)
3 buildah config --workingdir /home/demo $id
4 buildah config -l=demo $id
5 buildah run $id adduser demo
6 buildah copy $id dist/sbcl /home/demo/sbcl
7 buildah copy $id dist/fasl/ /home/demo/fasl
8 buildah copy $id dist/rocksdb/librocksdb.so /usr/local/lib/
9 # buildah copy $id dist/tree-sitter/grammar/* /usr/local/share/tree-sitter/
10 # cleanup
11 # buildah config --entrypoint
12 buildah commit $id demo