add 'simple' containers and distribute way more programs

This commit is contained in:
Connor Olding 2022-10-15 01:30:12 -07:00
parent 76456e8ea2
commit a32a28d7c2
26 changed files with 118 additions and 4 deletions

View File

@ -37,6 +37,15 @@ 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 ;} \
&& : \
@ -50,21 +59,44 @@ build() { : \
&& build rescue \
`# phase 4` \
&& build cosmo-base \
&& build_simple \
`# phase 5` \
&& build cosmo-kuroko \
&& build cosmo-muon \
&& build cosmo-perl \
&& build cosmo-yices \
\
&& bin=/usr/local/bin \
&& yes_retrieve cosmo-base /cosmopolitan/bin/ape \
&& dbg_retrieve cosmo-all $bin/awk.com $bin/gzip.com $bin/make.com \
$bin/sed.com $bin/unbourne.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 \
\
&& 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-awk /bin/awk.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-quickjs /bin/qjs.com /bin/qjsc.com \
&& dbg_retrieve cosmo-sed /bin/sed.com \
&& dbg_retrieve cosmo-sqlite /bin/sqlite3.com \
&& dbg_retrieve fold /bin/fold.com \
&& dbg_retrieve greenbean /bin/greenbean.com \
&& dbg_retrieve hello /bin/hello.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 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,3 @@
FROM rescue
COPY --chmod=0755 --from=localhost/cosmo-all /usr/local/bin/assimilate.* /bin/
ENTRYPOINT ["/bin/ape", "/bin/assimilate.com"]

3
simple/bd.Dockerfile Normal file
View File

@ -0,0 +1,3 @@
FROM rescue
COPY --chmod=0755 --from=localhost/cosmo-all /usr/local/bin/bd.* /bin/
ENTRYPOINT ["/bin/ape", "/bin/bd.com"]

4
simple/bing.Dockerfile Normal file
View File

@ -0,0 +1,4 @@
FROM rescue
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"]

View File

@ -0,0 +1,3 @@
FROM rescue
COPY --chmod=0755 --from=localhost/cosmo-all /usr/local/bin/blinkenlights.* /bin/
ENTRYPOINT ["/bin/ape", "/bin/blinkenlights.com"]

View File

@ -0,0 +1,3 @@
FROM rescue
COPY --chmod=0755 --from=localhost/cosmo-all /usr/local/bin/awk.* /bin/
ENTRYPOINT ["/bin/ape", "/bin/awk.com"]

View File

@ -0,0 +1,3 @@
FROM rescue
COPY --chmod=0755 --from=localhost/cosmo-all /usr/local/bin/chibicc.* /bin/
ENTRYPOINT ["/bin/ape", "/bin/chibicc.com"]

View File

@ -0,0 +1,4 @@
FROM rescue
COPY --chmod=0755 --from=localhost/cosmo-all /usr/local/bin/lua.* /bin/
COPY --chmod=0755 --from=localhost/cosmo-all /usr/local/bin/luac.* /bin/
ENTRYPOINT ["/bin/ape", "/bin/lua.com"]

View File

@ -0,0 +1,3 @@
FROM rescue
COPY --chmod=0755 --from=localhost/cosmo-all /usr/local/bin/make.* /bin/
ENTRYPOINT ["/bin/ape", "/bin/make.com"]

View File

@ -0,0 +1,3 @@
FROM rescue
COPY --chmod=0755 --from=localhost/cosmo-all /usr/local/bin/python.* /bin/
ENTRYPOINT ["/bin/ape", "/bin/python.com"]

View File

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

View File

@ -0,0 +1,3 @@
FROM rescue
COPY --chmod=0755 --from=localhost/cosmo-all /usr/local/bin/sqlite3.* /bin/
ENTRYPOINT ["/bin/ape", "/bin/sqlite3.com"]

3
simple/fold.Dockerfile Normal file
View File

@ -0,0 +1,3 @@
FROM rescue
COPY --chmod=0755 --from=localhost/cosmo-all /usr/local/bin/fold.* /bin/
ENTRYPOINT ["/bin/ape", "/bin/fold.com"]

View File

@ -0,0 +1,3 @@
FROM rescue
COPY --chmod=0755 --from=localhost/cosmo-all /usr/local/bin/greenbean.* /bin/
ENTRYPOINT ["/bin/ape", "/bin/greenbean.com"]

3
simple/hello.Dockerfile Normal file
View File

@ -0,0 +1,3 @@
FROM rescue
COPY --chmod=0755 --from=localhost/cosmo-all /usr/local/bin/hello.* /bin/
ENTRYPOINT ["/bin/ape", "/bin/hello.com"]

3
simple/life.Dockerfile Normal file
View File

@ -0,0 +1,3 @@
FROM rescue
COPY --chmod=0755 --from=localhost/cosmo-all /usr/local/bin/life.* /bin/
ENTRYPOINT ["/bin/ape", "/bin/life.com"]

View File

@ -0,0 +1,3 @@
FROM rescue
COPY --chmod=0755 --from=localhost/cosmo-all /usr/local/bin/memzoom.* /bin/
ENTRYPOINT ["/bin/ape", "/bin/memzoom.com"]

3
simple/mkdeps.Dockerfile Normal file
View File

@ -0,0 +1,3 @@
FROM rescue
COPY --chmod=0755 --from=localhost/cosmo-all /usr/local/bin/mkdeps.* /bin/
ENTRYPOINT ["/bin/ape", "/bin/mkdeps.com"]

3
simple/pledge.Dockerfile Normal file
View File

@ -0,0 +1,3 @@
FROM rescue
COPY --chmod=0755 --from=localhost/cosmo-all /usr/local/bin/pledge.* /bin/
ENTRYPOINT ["/bin/ape", "/bin/pledge.com"]

View File

@ -0,0 +1,3 @@
FROM rescue
COPY --chmod=0755 --from=localhost/cosmo-all /usr/local/bin/printimage.* /bin/
ENTRYPOINT ["/bin/ape", "/bin/printimage.com"]

View File

@ -0,0 +1,3 @@
FROM rescue
COPY --chmod=0755 --from=localhost/cosmo-all /usr/local/bin/printvideo.* /bin/
ENTRYPOINT ["/bin/ape", "/bin/printvideo.com"]

View File

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

View File

@ -0,0 +1,3 @@
FROM rescue
COPY --chmod=0755 --from=localhost/cosmo-all /usr/local/bin/unbourne.* /bin/
ENTRYPOINT ["/bin/ape", "/bin/unbourne.com"]

3
simple/unveil.Dockerfile Normal file
View File

@ -0,0 +1,3 @@
FROM rescue
COPY --chmod=0755 --from=localhost/cosmo-all /usr/local/bin/unveil.* /bin/
ENTRYPOINT ["/bin/ape", "/bin/unveil.com"]