From 0805ee32b88b682bfabdabc7b4f58f489121c2fc Mon Sep 17 00:00:00 2001 From: Dimitri Fontaine Date: Fri, 8 Apr 2016 10:42:09 +0200 Subject: [PATCH] Add a CCL dockerfile. For some reasons, with the default DYNSIZE and even when using the 64 bits Clozure-CL variant, I get a series of error messages like the one below, so that I had to restrain to using 256 MB only: Fatal error in "buildapp" : Fault during read of memory address #x7F8C37522668 Fatal error in "buildapp" : Fault during Fatal error in "buildapp" : Stack overflow on temp stack. Fatal error in "buildapp" : Fault during read of memory address #x7F8C37522668 It's worth trying something else as the limitation might be tied to my local virtual build environment. See #327 where the SBCL Garbage Collector is introducing problems which might not appear at all when compiling with Clozure-CL instead. --- Dockerfile.ccl | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 Dockerfile.ccl diff --git a/Dockerfile.ccl b/Dockerfile.ccl new file mode 100644 index 0000000..eaf8aa2 --- /dev/null +++ b/Dockerfile.ccl @@ -0,0 +1,19 @@ +FROM debian:jessie +MAINTAINER Dimitri Fontaine + +RUN apt-get update +RUN apt-get install -y wget curl make git bzip2 time libzip-dev libssl1.0.0 openssl +RUN apt-get install -y patch unzip libsqlite3-dev gawk freetds-dev subversion + +WORKDIR /usr/local/src +RUN svn co http://svn.clozure.com/publicsvn/openmcl/release/1.11/linuxx86/ccl +RUN cp /usr/local/src/ccl/scripts/ccl64 /usr/local/bin/ccl + +ADD ./ /opt/src/pgloader +WORKDIR /opt/src/pgloader + +# build/ is in the .dockerignore file, but we actually need it now +RUN mkdir -p build/bin +RUN make CL=ccl DYNSIZE=256 + +RUN cp /opt/src/pgloader/build/bin/pgloader /usr/local/bin