chore: update docker config for building old versions

This commit is contained in:
Marcus Holland-Moritz 2025-08-26 10:14:40 +02:00
parent 6d68fb3ef0
commit b65396b294
5 changed files with 12 additions and 7 deletions

1
.docker/.dockerignore Normal file
View File

@ -0,0 +1 @@
/docker-0.2.x

View File

@ -0,0 +1,2 @@
/@*
/Makefile

1
.docker/docker-0.2.x/.gitignore vendored Normal file
View File

@ -0,0 +1 @@
/@*

View File

@ -56,10 +56,11 @@ RUN apk add --no-cache \
openssl-libs-static \
openssl-dev
COPY double-conversion-3.1.5.tar.gz /opt/
COPY fmt-7.1.3.tar.gz /opt/
COPY fuse-3.10.4.tar.xz /opt/
COPY glog-0.5.0.tar.gz /opt/
RUN wget https://github.com/google/double-conversion/archive/refs/tags/v3.1.5.tar.gz -O /opt/double-conversion-3.1.5.tar.gz \
&& wget https://github.com/fmtlib/fmt/archive/refs/tags/7.1.3.tar.gz -O /opt/fmt-7.1.3.tar.gz \
&& wget https://github.com/libfuse/libfuse/releases/download/fuse-3.10.4/fuse-3.10.4.tar.xz -O /opt/fuse-3.10.4.tar.xz \
&& wget https://github.com/google/glog/archive/refs/tags/v0.5.0.tar.gz -O /opt/glog-0.5.0.tar.gz
COPY build_libs.sh /opt/
RUN bash /opt/build_libs.sh

View File

@ -5,9 +5,9 @@ NPROC:=$(shell nproc)
COMMON_RUN_OPTS=-it --rm \
--cap-add SYS_ADMIN --device /dev/fuse --privileged \
--mount type=bind,source=/home/mhx/git/github/dwarfs,target=/workspace,readonly \
--mount type=bind,source="$(ROOT_DIR)"/../@ccache,target=/ccache \
--mount type=bind,source="$(ROOT_DIR)"/../@home,target=/root \
--mount type=bind,source="$(ROOT_DIR)"/../..,target=/workspace,readonly \
--mount type=bind,source="$(ROOT_DIR)"/@ccache,target=/ccache \
--mount type=bind,source="$(ROOT_DIR)"/@home,target=/root \
--env CCACHE_DIR=/ccache --env CTEST_PARALLEL_LEVEL=$(NPROC) \
--entrypoint /bin/bash