Created
May 30, 2019 17:59
-
-
Save raycoll/bb1cd91c8480be414809c5b77db5df88 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM ubuntu:trusty | |
RUN mkdir -p /workplace/s2n | |
COPY s2n-master /workplace/s2n | |
RUN ls /workplace/s2n | |
RUN apt-get update | |
RUN apt-get -y install git \ | |
python-software-properties \ | |
software-properties-common | |
RUN add-apt-repository ppa:ubuntu-toolchain-r/test -y | |
RUN apt-get update -o Acquire::CompressionTypes::Order::=gz | |
RUN apt-get -y install curl \ | |
unzip \ | |
make \ | |
indent \ | |
kwstyle \ | |
libssl-dev \ | |
tcpdump \ | |
valgrind \ | |
lcov \ | |
m4 \ | |
nettle-dev \ | |
nettle-bin \ | |
pkg-config \ | |
gcc \ | |
g++ \ | |
zlibc \ | |
zlib1g-dev \ | |
python-pip \ | |
llvm \ | |
gcc-6 | |
RUN apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 6B05F25D762E3157 | |
# Source the environment vars | |
WORKDIR /workplace/s2n | |
RUN apt-get -y install libncurses5-dev | |
RUN apt-get -y install g++-6 | |
RUN mkdir -p test-deps | |
RUN /bin/bash -c 'source .travis/s2n_setup_env.sh ; mkdir -p $LATEST_CLANG_INSTALL_DIR' | |
RUN /bin/bash -c 'source .travis/s2n_setup_env.sh && .travis/install_clang.sh $(mktemp -d) $LATEST_CLANG_INSTALL_DIR $TRAVIS_OS_NAME' | |
RUN /bin/bash -c 'source .travis/s2n_setup_env.sh && mkdir -p $LIBFUZZER_INSTALL_DIR' | |
RUN /bin/bash -c 'source .travis/s2n_setup_env.sh && PATH=$LATEST_CLANG_INSTALL_DIR/bin:$PATH .travis/install_libFuzzer.sh $(mktemp -d) $LIBFUZZER_INSTALL_DIR $TRAVIS_OS_NAME' | |
RUN /bin/bash -c 'source .travis/s2n_setup_env.sh && mkdir -p $OPENSSL_1_1_1_INSTALL_DIR' | |
RUN /bin/bash -c 'source .travis/s2n_setup_env.sh && .travis/install_openssl_1_1_1.sh $(mktemp -d) $OPENSSL_1_1_1_INSTALL_DIR $TRAVIS_OS_NAME' | |
RUN /bin/bash -c 'source .travis/s2n_setup_env.sh && mkdir -p $PYTHON_INSTALL_DIR' | |
RUN /bin/bash -c 'source .travis/s2n_setup_env.sh && .travis/install_python.sh $OPENSSL_1_1_1_INSTALL_DIR $(mktemp -d) $PYTHON_INSTALL_DIR' | |
WORKDIR /workplace/s2n-dev | |
COPY s2n /workplace/s2n-dev | |
COPY entrypoint.sh /usr/local/bin/entrypoint.sh | |
ENTRYPOINT ["/usr/local/bin/entrypoint.sh"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment