This commit is contained in:
Connor Olding 2022-10-14 19:14:17 -07:00
parent 3a0538a6cc
commit 558dd00561
13 changed files with 95 additions and 18 deletions

View file

@ -71,23 +71,34 @@ build_simple() { : \
&& { [ ! -e cosmo-mini ] || build cosmo-mini ;} \
&& { [ ! -e cosmo-python311 ] || build cosmo-python311 ;} \
\
&& bin=/cosmopolitan/bin \
&& yes_retrieve cosmo-base $bin/ape $bin/assimilate.com $bin/awk.com \
$bin/gzip.com $bin/make.com $bin/sed.com $bin/unzip.com $bin/zip.com \
&& dbg_retrieve cosmo-kuroko /bin/kuroko.com \
&& dbg_retrieve cosmo-muon /bin/muon.com \
&& dbg_retrieve cosmo-perl /bin/perl.com \
&& dbg_retrieve cosmo-yices /bin/kissat.com /bin/yices-sat.com \
/bin/yices-smt.com /bin/yices-smt2.com /bin/yices.com \
&& yes_retrieve cosmo-base /cosmopolitan/bin/ape
&& dbg_retrieve cosmo-kuroko /bin/kuroko.com \
&& dbg_retrieve cosmo-muon /bin/muon.com \
&& dbg_retrieve cosmo-perl /bin/perl.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 \
&& dbg_retrieve assimilate /bin/assimilate.com \
&& dbg_retrieve bd /bin/bd.com \
&& dbg_retrieve bing /bin/bing.com /bin/unbing.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 fold /bin/fold.com \
&& dbg_retrieve greenbean /bin/greenbean.com \
&& dbg_retrieve life /bin/life.com \
&& dbg_retrieve memzoom /bin/memzoom.com \
&& dbg_retrieve mkdeps /bin/mkdeps.com \
&& dbg_retrieve pledge /bin/pledge.com \
&& dbg_retrieve printimage /bin/printimage.com \
&& dbg_retrieve printvideo /bin/printvideo.com \
&& dbg_retrieve quickjs /bin/qjs.com /bin/qjsc.com \
&& dbg_retrieve redbean /bin/redbean.com \
&& dbg_retrieve tinyemu /bin/tinyemu.com \
&& dbg_retrieve unbourne /bin/unbourne.com \
&& dbg_retrieve unveil /bin/unveil.com \
;

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/assimilate.* /bin/
ENTRYPOINT ["/bin/ape", "/bin/assimilate.com"]

5
simple/bd.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/bd.* /bin/
ENTRYPOINT ["/bin/ape", "/bin/bd.com"]

6
simple/bing.Dockerfile Normal file
View file

@ -0,0 +1,6 @@
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/bing.* /bin/
COPY --chmod=0755 --from=localhost/cosmo-all /usr/local/bin/unbing.* /bin/
ENTRYPOINT ["/bin/ape", "/bin/bing.com"]

5
simple/fold.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/fold.* /bin/
ENTRYPOINT ["/bin/ape", "/bin/fold.com"]

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/greenbean.* /bin/
ENTRYPOINT ["/bin/ape", "/bin/greenbean.com"]

5
simple/life.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/life.* /bin/
ENTRYPOINT ["/bin/ape", "/bin/life.com"]

5
simple/mkdeps.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/mkdeps.* /bin/
ENTRYPOINT ["/bin/ape", "/bin/mkdeps.com"]

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/printimage.* /bin/
ENTRYPOINT ["/bin/ape", "/bin/printimage.com"]

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/printvideo.* /bin/
ENTRYPOINT ["/bin/ape", "/bin/printvideo.com"]

View file

@ -0,0 +1,6 @@
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/qjs.* /bin/
COPY --chmod=0755 --from=localhost/cosmo-all /usr/local/bin/qjsc.* /bin/
ENTRYPOINT ["/bin/ape", "/bin/qjs.com"]

View file

@ -0,0 +1,9 @@
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/redbean-demo.* /bin/
COPY --chmod=0755 --from=localhost/cosmo-all /usr/local/bin/redbean-original.* /bin/
COPY --chmod=0755 --from=localhost/cosmo-all /usr/local/bin/redbean-static.* /bin/
COPY --chmod=0755 --from=localhost/cosmo-all /usr/local/bin/redbean-unsecure.* /bin/
COPY --chmod=0755 --from=localhost/cosmo-all /usr/local/bin/redbean.* /bin/
ENTRYPOINT ["/bin/ape", "/bin/redbean-demo.com"]

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/tinyemu.* /bin/
ENTRYPOINT ["/bin/ape", "/bin/tinyemu.com"]