tomfoolery
This commit is contained in:
parent
22f0ec9fa9
commit
4fda9c2767
1 changed files with 16 additions and 3 deletions
19
build-all
19
build-all
|
@ -39,17 +39,30 @@ build() { : \
|
||||||
|
|
||||||
build_simple() { : \
|
build_simple() { : \
|
||||||
&& for f in simple/*.Dockerfile \
|
&& for f in simple/*.Dockerfile \
|
||||||
;do : \
|
;do t="${f%.*}" t=${t##*/} \
|
||||||
&& t="${f%.*}" t=${t##*/} \
|
|
||||||
&& announce '(simple) packaging' "$t" \
|
&& announce '(simple) packaging' "$t" \
|
||||||
&& podman build -t "$t" -f "$f" simple \
|
&& podman build -t "$t" -f "$f" simple \
|
||||||
|| return \
|
|| return \
|
||||||
;done \
|
;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 ;} \
|
&& me="$(readlink -f "$0")" && cd "${me%/*}" && { [ -d out ] || mkdir out ;} \
|
||||||
;: \
|
&& prep \
|
||||||
|
\
|
||||||
`# phase 1` \
|
`# phase 1` \
|
||||||
&& build notwa-util \
|
&& build notwa-util \
|
||||||
`# phase 2` \
|
`# phase 2` \
|
||||||
|
|
Loading…
Add table
Reference in a new issue