tomfoolery

This commit is contained in:
Connor Olding 2022-10-14 22:05:10 -07:00
parent 22f0ec9fa9
commit 4fda9c2767

View file

@ -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` \