
images.nss.Dockerfile Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of tls-docker-library Show documentation
Show all versions of tls-docker-library Show documentation
Bill of Materials POM for the entire protocol attacker ecosystem used to keep dependencies in sync.
The newest version!
FROM alpine-build:3.12 as nss
ARG NSS_VERSION
ARG NSPR_VERSION
RUN hg clone -r NSS_${NSS_VERSION} https://hg.mozilla.org/projects/nss
RUN hg clone -r NSPR_${NSPR_VERSION} https://hg.mozilla.org/projects/nspr
RUN apk add py3-pip && \
apk add ninja && \
ln -s /usr/bin/python3 /usr/bin/python && \
pip install setuptools && \
git clone https://chromium.googlesource.com/external/gyp && \
cd gyp && python3 ./setup.py install
WORKDIR /src/nss
RUN cat coreconf/werror.py
RUN ./build.sh --opt
# copy all libs we need
RUN mkdir /libdeps
RUN cp $(LD_LIBRARY_PATH="/src/dist/Release/lib/" ldd /src/dist/Release/bin/selfserv | awk '$3=="" {print $1}; $3!="" {print $3}') /libdeps/
RUN cp $(LD_LIBRARY_PATH="/src/dist/Release/lib/" ldd /src/dist/Release/bin/tstclnt | awk '$3=="" {print $1}; $3!="" {print $3}') /libdeps/
# just add all other libs, as some are loaded dynamically...
RUN cp -r /src/nss/out/Release/* /libdeps/
RUN cp -r /src/dist/Release/lib/* /libdeps/
FROM entrypoint as nss-base
COPY --from=nss /src/dist/public/nss/ /src/dist/Release/include/nspr /artifacts/ssllib/include/
COPY --from=nss /src/dist/Release/lib/ /artifacts/ssllib/lib/
COPY --from=nss /src/dist/private/ /artifacts/ssllib/dist-private/
COPY --from=nss /libdeps/* /artifacts/ssllib/libdeps/
COPY --from=nss /libdeps/* /lib/
COPY --from=nss \
/src/dist/Release/bin/selfserv \
/src/dist/Release/bin/tstclnt \
/src/dist/Release/bin/nss_bogo_shim /bin/
FROM nss-base as nss-server
ARG VERSION
LABEL "tls_implementation"="nss"
LABEL "tls_implementation_version"="${VERSION}"
LABEL "tls_implementation_connectionRole"="server"
ENTRYPOINT ["server-entrypoint", "/bin/selfserv"]
FROM nss-base as nss-client
ARG VERSION
LABEL "tls_implementation"="nss"
LABEL "tls_implementation_version"="${VERSION}"
LABEL "tls_implementation_connectionRole"="client"
ENTRYPOINT ["client-entrypoint", "/bin/tstclnt"]
© 2015 - 2025 Weber Informatics LLC | Privacy Policy