diff --git a/build-all b/build-all index b282597..43a28c5 100755 --- a/build-all +++ b/build-all @@ -39,17 +39,30 @@ build() { : \ build_simple() { : \ && for f in simple/*.Dockerfile \ - ;do : \ - && t="${f%.*}" t=${t##*/} \ + ;do t="${f%.*}" t=${t##*/} \ && announce '(simple) packaging' "$t" \ && podman build -t "$t" -f "$f" simple \ || return \ ;done \ ;} +prep() { : \ + && [ "$(whoami)" != podman ] \ + || { : \ + && mkdir -p ~/.config/containers/ \ + && printf '%s\n' >~/.config/containers/storage.conf \ + '[storage]' 'driver = "overlay"' 'runroot = "$HOME/junk"' \ + 'graphroot = "$HOME/junk"' 'rootless_storage_path = "$HOME/junk"' \ + '[storage.options]' 'additionalimagestores = [' ']' \ + '[storage.options.overlay]' 'mountopt = "nodev"' \ + '[storage.options.thinpool]' \ + ;} \ + ;} + : \ && me="$(readlink -f "$0")" && cd "${me%/*}" && { [ -d out ] || mkdir out ;} \ -;: \ + && prep \ +\ `# phase 1` \ && build notwa-util \ `# phase 2` \