more wip
All checks were successful
/ build (push) Successful in 3m6s

This commit is contained in:
Hornwitser 2025-05-17 23:09:38 +02:00
parent 45a83dd740
commit 47a2a5b79a

View file

@ -1,13 +1,12 @@
#!/usr/bin/env bash #!/usr/bin/env bash
set -x set -xe
YQ_VERSION=v4.44.2 YQ_VERSION=v4.44.2
NODE_VERSION=22.15.1
PNPM_VERSION=v9.5.0
NODE_VERSION=22.x NODE_VERSION=22.x
PNPM_VERSION=v9.5.0
ctr=$(buildah from "docker.io/library/debian:trixie-20250428") ctr=$(buildah from "docker.io/library/debian:trixie-20250428")
mnt=$(buildah mount $ctr) #mnt=$(buildah mount $ctr)
buildah run $ctr -- apt-get update buildah run $ctr -- apt-get update
buildah run $ctr -- apt-get install -y --no-install-recommends \ buildah run $ctr -- apt-get install -y --no-install-recommends \
@ -23,19 +22,19 @@ buildah run $ctr -- apt-get install -y --no-install-recommends \
; ;
#gpg \ #gpg \
sed $mnt/usr/share/containers/storage.conf \ buildah run $ctr -- sh -c "sed /usr/share/containers/storage.conf \
-e '/^#\?mount_program/c\ -e '/^#\?mount_program/c"'\
mount_program = "/usr/bin/fuse-overlayfs"' \ '"mount_program = \"/usr/bin/fuse-overlayfs\"' \
> $mnt/etc/containers/storage.conf > /etc/containers/storage.conf"
# yq https://github.com/mikefarah/yq?tab=readme-ov-file#install # yq https://github.com/mikefarah/yq?tab=readme-ov-file#install
buildah run $ctr -- sh -c 'curl --silent --location "https://github.com/mikefarah/yq/releases/download/$YQ_VERSION/yq_linux_amd64.tar.gz" \ buildah run $ctr -- sh -c "curl --silent --location \"https://github.com/mikefarah/yq/releases/download/$YQ_VERSION/yq_linux_amd64.tar.gz\" \
| tar --extract --gzip --to-stdout ./yq_linux_amd64 \ | tar --extract --gzip --to-stdout ./yq_linux_amd64 \
| install --owner=root --group=root --mode=0755 /dev/stdin $mnt/usr/local/bin/yq \ | install --owner=root --group=root --mode=0755 /dev/stdin /usr/local/bin/yq \
;' ;"
# node https://github.com/nodesource/distributions?tab=readme-ov-file#using-debian-as-root-nodejs-22 # node https://github.com/nodesource/distributions?tab=readme-ov-file#using-debian-as-root-nodejs-22
buildah run $ctr -- sh -c 'curl --silent --location "https://deb.nodesource.com/setup_$NODE_VERSION" | bash' buildah run $ctr -- sh -c "curl --silent --location \"https://deb.nodesource.com/setup_$NODE_VERSION\" | bash"
buildah run $ctr -- apt-get install -y --no-install-recommends nodejs buildah run $ctr -- apt-get install -y --no-install-recommends nodejs
# pnpm https://nodejs.org/api/corepack.html#upgrading-the-global-versions # pnpm https://nodejs.org/api/corepack.html#upgrading-the-global-versions
buildah run $ctr -- corepack install --global pnpm@$PNPM_VERSION buildah run $ctr -- corepack install --global pnpm@$PNPM_VERSION