Não pode escolher mais do que 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.
 
 
 
 
 
 

56 linhas
1.6 KiB

  1. FROM buildpack-deps
  2. RUN hg clone https://hg.mozilla.org/projects/nspr
  3. RUN hg clone https://hg.mozilla.org/projects/nss
  4. ENV USE_64=1 NSS_ENABLE_TLS_1_3=1
  5. # Incremental build snapshot disabled as dependencies don't seem to be solid:
  6. # the same value changed in a header file would apply to one .c file and not another
  7. # RUN cd nss && make nss_build_all
  8. # Draft 15
  9. # ARG REVISION=c483e5f9e0bc
  10. # Draft 16
  11. # ARG REVISION=3e7b53b18112
  12. # Draft 18
  13. # ARG REVISION=b6dfef6d0ff0
  14. # Draft 18, NSS_3_34_1_RTM (with TLS 1.3 keylogging support)
  15. # ARG REVISION=e61c0f657100
  16. # Draft 22
  17. ARG REVISION=88c3f3fa581b
  18. RUN cd nss && hg pull
  19. RUN cd nss && hg checkout -C $REVISION
  20. ADD *.patch ./
  21. RUN for p in *.patch; do patch -p1 -d nss < $p; done
  22. RUN cd nss && make nss_build_all
  23. # ENV HOST=localhost
  24. # RUN cd nss/tests/ssl_gtests && ./ssl_gtests.sh
  25. RUN cd nss && make install
  26. 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
  27. ENV LD_LIBRARY_PATH=/dist/OBJ-PATH/lib
  28. ENV SSLTRACE=100 SSLDEBUG=100
  29. # Init test key using an empty noise (seed) file (-z /dev/null).
  30. # Use different subjects, otherwise NSS seems to merge keys under the same nickname.
  31. RUN mkdir /certdb && \
  32. /dist/OBJ-PATH/bin/certutil -d /certdb -N --empty-password && \
  33. /dist/OBJ-PATH/bin/certutil -d /certdb -S -n rsa-server -t u -x -s CN=localhost -k rsa -z /dev/null && \
  34. /dist/OBJ-PATH/bin/certutil -d /certdb -S -n ecdsa-server -t u -x -s CN=localhost,O=EC -k ec -z /dev/null -q nistp256
  35. ADD httpreq.txt /httpreq.txt
  36. ADD run.sh /run.sh
  37. ADD server.sh /server.sh
  38. ENTRYPOINT ["/run.sh"]