keep the docker image around for quicker compiles the next time
This commit is contained in:
parent
917788e29f
commit
031f975b2c
2 changed files with 13 additions and 15 deletions
20
Makefile
20
Makefile
|
@ -26,18 +26,8 @@ clean:
|
||||||
|
|
||||||
compile-on-debian-11:
|
compile-on-debian-11:
|
||||||
# builds repo2html compatible with systems running glibc-2.31 and higher.
|
# builds repo2html compatible with systems running glibc-2.31 and higher.
|
||||||
#
|
docker build docker
|
||||||
# this will download a debian docker container that has glibc 2.31, then
|
docker run -v $(shell pwd):/tmp/x -w /tmp/x --rm repo2htmlbuilder make compile
|
||||||
# download chicken scheme, gcc compiler, and tons of related packages, then
|
# the docker image "repo2htmlbuilder:latest" now exists on your system.
|
||||||
# download all the dependency eggs, then compile them, then compile this
|
# this will make the next time you run this command go faster.
|
||||||
# project, then except for that one output executable it will delete
|
# to delete it and reclaim the space run "docker image rm repo2htmlbuilder:latest"
|
||||||
# *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'
|
|
||||||
|
|
8
docker/Dockerfile
Normal file
8
docker/Dockerfile
Normal 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
|
Loading…
Add table
Reference in a new issue