All Downloads are FREE. Search and download functionalities are using the official Maven repository.

images.boringssl.Dockerfile-2272-2357 Maven / Gradle / Ivy

Go to download

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 boringssl-base1
ARG VERSION
RUN git clone --depth=1 -b ${VERSION} https://github.com/google/boringssl.git
#remove the errorflags in CMakeLists.txt otherwise boringssl will not compile (workaround)
#/src/boringssl/crypto/pem/pem_lib.c:460:2: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
RUN sed -i -e 's/-Wall -Wshadow -Werror //g' /src/boringssl/CMakeLists.txt
RUN sed -i -e 's/-Wall -Werror //g' /src/boringssl/CMakeLists.txt
WORKDIR /build/
RUN cmake -DCMAKE_BUILD_TYPE=Release -DBUILD_SHARED_LIBS=1 /src/boringssl/
#ignore the errors while compiling, linker errors in the shim module -> shim is not working
RUN make -i
# copy all libs we need
RUN mkdir /libdeps
RUN cp $(LD_LIBRARY_PATH="/build/lib/" ldd /build/tool/bssl | awk '$3=="" {print $1}; $3!="" {print $3}') /libdeps/

FROM entrypoint as boringssl-base2
COPY --from=boringssl-base1 /src/boringssl/include/ /artifacts/ssllib/include/
COPY --from=boringssl-base1 /build/ssl/libssl.so /build/crypto/libcrypto.so /artifacts/ssllib/lib/
COPY --from=boringssl-base1 /libdeps/* /artifacts/ssllib/libdeps/
COPY --from=boringssl-base1 /libdeps/* /lib/
COPY --from=boringssl-base1 /build/tool/bssl /bin/

FROM boringssl-base2 as boringssl-server
ARG VERSION
LABEL "tls_implementation"="boringssl"
LABEL "tls_implementation_version"="${VERSION}"
LABEL "tls_implementation_connectionRole"="server"
ENTRYPOINT ["server-entrypoint", "bssl", "s_server"]

FROM boringssl-base2 as boringssl-client
ARG VERSION
LABEL "tls_implementation"="boringssl"
LABEL "tls_implementation_version"="${VERSION}"
LABEL "tls_implementation_connectionRole"="client"
ENTRYPOINT ["client-entrypoint", "bssl", "s_client"]




© 2015 - 2025 Weber Informatics LLC | Privacy Policy