Dockerfile revision 45d75bb2
145d75bb2SBrian ProdoehlFROM ubuntu:16.04 245d75bb2SBrian Prodoehl 345d75bb2SBrian ProdoehlRUN apt-get update && \ 445d75bb2SBrian Prodoehl apt-get install -y build-essential git cmake software-properties-common \ 545d75bb2SBrian Prodoehl zlib1g-dev libevent-dev 645d75bb2SBrian Prodoehl 745d75bb2SBrian ProdoehlRUN add-apt-repository ppa:gophers/archive && \ 845d75bb2SBrian Prodoehl apt-get update && \ 945d75bb2SBrian Prodoehl apt-get install -y golang-1.9-go && \ 1045d75bb2SBrian Prodoehl cp /usr/lib/go-1.9/bin/go* /usr/bin/. 1145d75bb2SBrian Prodoehl 1245d75bb2SBrian ProdoehlRUN mkdir /src 1345d75bb2SBrian ProdoehlWORKDIR /src 1445d75bb2SBrian Prodoehl 1545d75bb2SBrian ProdoehlRUN git clone https://boringssl.googlesource.com/boringssl && \ 1645d75bb2SBrian Prodoehl cd boringssl && \ 1745d75bb2SBrian Prodoehl git checkout chromium-stable && \ 1845d75bb2SBrian Prodoehl cmake . && \ 1945d75bb2SBrian Prodoehl make && \ 2045d75bb2SBrian Prodoehl BORINGSSL_SOURCE=$PWD && \ 2145d75bb2SBrian Prodoehl cd /usr/local/lib && \ 2245d75bb2SBrian Prodoehl cp $BORINGSSL_SOURCE/ssl/libssl.a . && \ 2345d75bb2SBrian Prodoehl cp $BORINGSSL_SOURCE/crypto/libcrypto.a . 2445d75bb2SBrian Prodoehl 2545d75bb2SBrian ProdoehlRUN mkdir /src/lsquic-client 2645d75bb2SBrian ProdoehlCOPY ./ /src/lsquic-client/ 2745d75bb2SBrian ProdoehlRUN cd /src/lsquic-client && \ 2845d75bb2SBrian Prodoehl cmake -DBORINGSSL_INCLUDE=/src/boringssl/include \ 2945d75bb2SBrian Prodoehl -DBORINGSSL_LIB=/usr/local/lib . && \ 3045d75bb2SBrian Prodoehl make 3145d75bb2SBrian Prodoehl 3245d75bb2SBrian ProdoehlRUN cd lsquic-client && make test && cp http_client /usr/bin/ 33