keep the docker image around for quicker compiles the next time

This commit is contained in:
pho4cexa 2022-12-18 11:57:18 -08:00
parent 917788e29f
commit 031f975b2c
2 changed files with 13 additions and 15 deletions

View File

@ -26,18 +26,8 @@ clean:
compile-on-debian-11:
# builds repo2html compatible with systems running glibc-2.31 and higher.
#
# this will download a debian docker container that has glibc 2.31, then
# download chicken scheme, gcc compiler, and tons of related packages, then
# download all the dependency eggs, then compile them, then compile this
# project, then except for that one output executable it will delete
# *everything* it has done and downloaded including any caches meant to
# save you some time and bandwidth the next time you need to compile this
#
# what i'm saying is, if we need to run this frequently, we should find a
# better mechanism. providing a dockerfile would probably be sufficient...
docker run --rm -it -v "$(shell pwd)":/tmp/x -w /tmp/x debian:bullseye-slim sh -c '\
apt update &&\
apt install -y chicken-bin build-essential make &&\
make dependencies &&\
make compile'
docker build docker
docker run -v $(shell pwd):/tmp/x -w /tmp/x --rm repo2htmlbuilder make compile
# the docker image "repo2htmlbuilder:latest" now exists on your system.
# this will make the next time you run this command go faster.
# to delete it and reclaim the space run "docker image rm repo2htmlbuilder:latest"

8
docker/Dockerfile Normal file
View File

@ -0,0 +1,8 @@
FROM debian:bullseye-slim
RUN apt update && apt install -y \
chicken-bin \
gcc \
make \
;
RUN chicken-install utf8 lowdown sxml-transforms clojurian symbol-utils scss srfi-1 srfi-13 srfi-14 ersatz
USER $UID