This commit is contained in:
Connor Olding 2022-10-14 18:38:42 -07:00
parent faccc07bbf
commit 3a0538a6cc
3 changed files with 27 additions and 8 deletions

View file

@ -36,6 +36,16 @@ build() { : \
&& podman build -t "$t" "$t" "$@" \
;}
build_simple() { : \
&& for f in simple/*.Dockerfile \
;do : \
&& t="${f%.*}" t=${t##*/} \
&& announce '(simple) packaging)' "$t" \
&& podman build -t "$t" -f "$f" simple \
|| return \
;done \
;}
: \
&& me="$(readlink -f "$0")" && cd "${me%/*}" && { [ -d out ] || mkdir out ;} \
;: \
@ -51,13 +61,7 @@ build() { : \
&& build cosmo-sed \
`# phase 4` \
&& build cosmo-base \
&& for f in simple/*.Dockerfile \
;do : \
&& t="${f%.*}" t=${t##*/} \
&& announce '(simple) packaging)' "$t" \
&& podman build -t "$t" -f "$f" simple \
|| exit \
;done ;\
&& build_simple \
`# phase 5` \
&& build cosmo-kuroko \
&& build cosmo-muon \
@ -73,7 +77,17 @@ build() { : \
&& dbg_retrieve cosmo-kuroko /bin/kuroko.com \
&& dbg_retrieve cosmo-muon /bin/muon.com \
&& dbg_retrieve cosmo-perl /bin/perl.com \
&& yes_retrieve cosmo-unbourne /bin/unbourne.com \
&& dbg_retrieve cosmo-yices /bin/kissat.com /bin/yices-sat.com \
/bin/yices-smt.com /bin/yices-smt2.com /bin/yices.com \
\
&& dbg_retrieve blinkenlights /bin/blinkenlights.com \
&& dbg_retrieve cosmo-chibicc /bin/chibicc.com \
&& dbg_retrieve cosmo-lua /bin/lua.com /bin/luac.com \
&& dbg_retrieve cosmo-make /bin/make.com \
&& dbg_retrieve cosmo-python /bin/python.com \
&& dbg_retrieve cosmo-sqlite /bin/sqlite3.com \
&& dbg_retrieve memzoom /bin/memzoom.com \
&& dbg_retrieve pledge /bin/pledge.com \
&& dbg_retrieve unbourne /bin/unbourne.com \
&& dbg_retrieve unveil /bin/unveil.com \
;

5
simple/pledge.Dockerfile Normal file
View file

@ -0,0 +1,5 @@
FROM scratch as runner
COPY --chmod=0755 --from=localhost/notwa-util /nu/busybox /bin/busybox
COPY --chmod=0755 --from=localhost/cosmo-all /cosmopolitan/build/bootstrap/ape.elf /bin/ape
COPY --chmod=0755 --from=localhost/cosmo-all /usr/local/bin/pledge.* /bin/
ENTRYPOINT ["/bin/ape", "/bin/pledge.com"]