2016-11-03 21:13:18 +00:00
|
|
|
FROM buildpack-deps
|
|
|
|
|
|
|
|
RUN hg clone https://hg.mozilla.org/projects/nspr
|
|
|
|
RUN hg clone https://hg.mozilla.org/projects/nss
|
|
|
|
|
|
|
|
ENV USE_64=1 NSS_ENABLE_TLS_1_3=1
|
|
|
|
# Incremental build snapshot disabled as dependencies don't seem to be solid:
|
|
|
|
# the same value changed in a header file would apply to one .c file and not another
|
|
|
|
# RUN cd nss && make nss_build_all
|
|
|
|
|
|
|
|
# Draft 15
|
|
|
|
# ARG REVISION=c483e5f9e0bc
|
|
|
|
|
|
|
|
# Draft 16
|
|
|
|
# ARG REVISION=3e7b53b18112
|
|
|
|
|
|
|
|
# Draft 18
|
2016-11-21 22:25:27 +00:00
|
|
|
# ARG REVISION=b6dfef6d0ff0
|
|
|
|
|
|
|
|
# tstclnt resumption
|
2016-12-05 18:00:53 +00:00
|
|
|
ARG REVISION=2ed8aef0b360
|
2016-11-03 21:13:18 +00:00
|
|
|
|
|
|
|
RUN cd nss && hg pull
|
|
|
|
RUN cd nss && hg checkout -C $REVISION
|
|
|
|
|
|
|
|
ADD *.patch ./
|
|
|
|
RUN for p in *.patch; do patch -p1 -d nss < $p; done
|
|
|
|
|
|
|
|
RUN cd nss && make nss_build_all
|
|
|
|
|
|
|
|
# ENV HOST=localhost
|
|
|
|
# RUN cd nss/tests/ssl_gtests && ./ssl_gtests.sh
|
|
|
|
|
|
|
|
RUN cd nss && make install
|
|
|
|
|
|
|
|
RUN mv /dist/$(uname -s)$(uname -r | cut -f 1-2 -d . -)_$(uname -m)_${CC:-cc}_glibc_PTH_64_$([ -n "$BUILD_OPT" ] && echo OPT || echo DBG).OBJ /dist/OBJ-PATH
|
|
|
|
|
|
|
|
ENV LD_LIBRARY_PATH=/dist/OBJ-PATH/lib
|
|
|
|
|
|
|
|
ENV SSLTRACE=100 SSLDEBUG=100
|
|
|
|
|
|
|
|
ADD httpreq.txt /httpreq.txt
|
|
|
|
ADD run.sh /run.sh
|
|
|
|
ENTRYPOINT ["/run.sh"]
|