From 77ab7006f6a955771e29b28c1643ed565acd40d4 Mon Sep 17 00:00:00 2001 From: sam#gemmi-win10 Date: Sat, 14 Oct 2023 17:22:09 +0800 Subject: [PATCH] buildx: +compile,compile2 --- deb12/buildx.sh | 27 ++++++++++++++++++--------- 1 file changed, 18 insertions(+), 9 deletions(-) diff --git a/deb12/buildx.sh b/deb12/buildx.sh index 398e8e7..c99bea2 100644 --- a/deb12/buildx.sh +++ b/deb12/buildx.sh @@ -13,24 +13,33 @@ ns=infrastlabs ver=v51 #base-v5 base-v5-slim case "$1" in compile) + repo=registry-1.docker.io + img="docker-headless:deb12-compile" + plat="--platform linux/amd64,linux/arm64" #,linux/arm + plat="--platform linux/amd64" + args="--provenance=false" + # --network=host: docker buildx create --use --name mybuilder2 --buildkitd-flags '--allow-insecure-entitlement network.host' + docker buildx build $plat --push -t $ns/$img -f src/Dockerfile.compile . + ;; +compile2) # TigerVNC 1.12.0 |10 Nov 2021 old=$(pwd); cd src/arm - # xrdp - ver="0.9.16" - file=xrdp-${ver}.tar.gz; test -s $file || curl -k -O -fSL https://github.com/neutrinolabs/xrdp/releases/download/v${ver}/$file - # tiger - file=xorg-server-1.20.7.tar.bz2; test -s $file || curl -k -O -fSL https://www.x.org/pub/individual/xserver/$file #6.1M - file=tigervnc-1.12.0.tar.gz; test -s $file || curl -k -O -fSL https://github.com/TigerVNC/tigervnc/archive/v1.12.0/$file #1.5M - # curl -O -fsSL https://www.linuxfromscratch.org/patches/blfs/svn/tigervnc-1.12.0-configuration_fixes-1.patch + # xrdp + ver="0.9.16" + file=xrdp-${ver}.tar.gz; test -s $file || curl -k -O -fSL https://github.com/neutrinolabs/xrdp/releases/download/v${ver}/$file + # tiger + file=xorg-server-1.20.7.tar.bz2; test -s $file || curl -k -O -fSL https://www.x.org/pub/individual/xserver/$file #6.1M + file=tigervnc-1.12.0.tar.gz; test -s $file || curl -k -O -fSL https://github.com/TigerVNC/tigervnc/archive/v1.12.0/$file #1.5M + # curl -O -fsSL https://www.linuxfromscratch.org/patches/blfs/svn/tigervnc-1.12.0-configuration_fixes-1.patch cd $old; # repo=registry-1.docker.io - img="docker-headless:deb12-compile" + img="docker-headless:deb12-compile2" plat="--platform linux/amd64,linux/arm64" #,linux/arm plat="--platform linux/amd64" args="--provenance=false" # --network=host: docker buildx create --use --name mybuilder2 --buildkitd-flags '--allow-insecure-entitlement network.host' - docker buildx build $plat --push -t $ns/$img -f src/Dockerfile.compile . + docker buildx build $plat --push -t $ns/$img -f src/Dockerfile.compile2 . ;; # +slim,base (docker-headless,weskit; use docker-headless's)