From a48afe87b9823e21b976c817e5c72a32bcbf80ac Mon Sep 17 00:00:00 2001 From: ed Date: Fri, 12 Jun 2026 21:47:04 +0000 Subject: [PATCH] docker: alpine 3.24 --- scripts/docker/base/Makefile | 2 +- scripts/docker/base/arbeidspakke.sh | 20 ++++++++++++-- scripts/docker/base/build-no265.sh | 43 +++++++++++++++++++---------- scripts/docker/base/verchk.sh | 11 +++++--- 4 files changed, 54 insertions(+), 22 deletions(-) diff --git a/scripts/docker/base/Makefile b/scripts/docker/base/Makefile index 6e8b1dce..a66e5cf4 100644 --- a/scripts/docker/base/Makefile +++ b/scripts/docker/base/Makefile @@ -8,7 +8,7 @@ all: ff: # legally comfy - /usr/bin/time ./build-no265.sh img + /usr/bin/time ./build-no265.sh pull img zlib: diff --git a/scripts/docker/base/arbeidspakke.sh b/scripts/docker/base/arbeidspakke.sh index 96d54930..112f0f71 100755 --- a/scripts/docker/base/arbeidspakke.sh +++ b/scripts/docker/base/arbeidspakke.sh @@ -1,9 +1,13 @@ #!/bin/ash set -e +AVER=3.24 + [ $1 = 1 ] && hub=1 uname -a +apk update +apk upgrade -al apk add alpine-sdk doas wget echo permit nopass root > /etc/doas.d/u.conf cp -pv /root/.abuild/*.pub /etc/apk/keys/ || abuild-keygen -ina @@ -13,7 +17,7 @@ cp -pv /root/.abuild/*.pub /etc/apk/keys/ || abuild-keygen -ina mkdir /ffmpeg cd /ffmpeg -base=https://github.com/alpinelinux/aports/raw/refs/heads/3.23-stable/community/ffmpeg/ +base=https://github.com/alpinelinux/aports/raw/refs/heads/$AVER-stable/community/ffmpeg/ wget ${base}APKBUILD awk t &1 | - tee b/log.$a + awk '{getline a<"/proc/uptime";close("/proc/uptime");sub(/ .*/,"",a);printf"%.2f %s\n",a-p,$0;p=a}' | + tee b/log.$n.$a - touch b/t.$a.2.$(date +%s) + touch b/t.$n.$a.2.$(date +%s) done wt -;wt "" } @@ -89,11 +92,23 @@ echo ok # 50m01.04 s390x # golflympics -# 4:09 x86_64-hub -# 2:57 x86_64 -# 2:54 x86 -# 31:13 aarch64 -# 22:38 armv7 -# 32:17 s390x -# 24:27 ppc64le -# 2:00:35 summa summarum +# 3:48 x86_64-hub +# 2:46 x86_64 +# 2:24 x86 +# 28:50 aarch64 +# 21:34 armv7 +# 31:13 s390x +# 22:50 ppc64le +# 1:53:25 summa summarum + +# for a in version muxers demuxers devices decoders encoders filters pix_fmts layouts sample_fmts ; do ffmpeg -hide_banner -$a; done | nc 192.168.123.1 4321 + +# v=3.24-stable +# echo -n https://dl-cdn.alpinelinux.org/v${v%-*}/releases/x86_64/ >aver +# curl -s $(cat aver)latest-releases.yaml | awk '/alpine-minirootfs-3.*gz$/{print$2;exit}' | grep ... >> aver +# podman import $(cat aver) a324 +# f(){ p=/sys/fs;for w in cgroup user.slice user-1000.slice user@1000.service user.slice ;do p="$p/$w";echo $1>"$p/cgroup.subtree_control";done;} +# f +cpuset +# time nice podman run --cpuset-cpus=1 \ +# grep -E '^[^0].*' -B2 -A1 log.1.amd64 # offbyone, whatever, just eyeball it +# f -cpuset diff --git a/scripts/docker/base/verchk.sh b/scripts/docker/base/verchk.sh index ab05830e..ef25a9f7 100755 --- a/scripts/docker/base/verchk.sh +++ b/scripts/docker/base/verchk.sh @@ -1,16 +1,19 @@ #!/bin/bash set -e -v=3.23 +AVER=3.24 + +v=$AVER-stable +#v=master mkdir -p cver rm -rf cver2 mkdir cver2 cd cver2 curl \ - -Lo1 https://raw.githubusercontent.com/alpinelinux/aports/refs/heads/$v-stable/main/musl/APKBUILD \ - -Lo2 https://raw.githubusercontent.com/alpinelinux/aports/refs/heads/$v-stable/main/python3/APKBUILD \ - -Lo3 https://raw.githubusercontent.com/alpinelinux/aports/refs/heads/$v-stable/community/ffmpeg/APKBUILD \ + -Lo1 https://raw.githubusercontent.com/alpinelinux/aports/refs/heads/$v/main/musl/APKBUILD \ + -Lo2 https://raw.githubusercontent.com/alpinelinux/aports/refs/heads/$v/main/python3/APKBUILD \ + -Lo3 https://raw.githubusercontent.com/alpinelinux/aports/refs/heads/$v/community/ffmpeg/APKBUILD \ ; zlib= ff=