Skip to content
Snippets Groups Projects
Commit c1e2a368 authored by Adrien Béraud's avatar Adrien Béraud
Browse files

docker: add ssl, install http-parser to /usr

parent c62f27c9
No related branches found
No related tags found
No related merge requests found
...@@ -3,13 +3,13 @@ MAINTAINER Adrien Béraud <adrien.beraud@savoirfairelinux.com> ...@@ -3,13 +3,13 @@ MAINTAINER Adrien Béraud <adrien.beraud@savoirfairelinux.com>
RUN apt-get update && apt-get install -y \ RUN apt-get update && apt-get install -y \
build-essential cmake git wget libncurses5-dev libreadline-dev nettle-dev \ build-essential cmake git wget libncurses5-dev libreadline-dev nettle-dev \
libgnutls28-dev libuv1-dev cython3 python3-dev python3-setuptools libcppunit-dev libjsoncpp-dev \ libgnutls28-dev libuv1-dev cython3 python3-dev python3-setuptools libcppunit-dev libjsoncpp-dev \
autotools-dev autoconf \ autotools-dev autoconf libssl-dev \
&& apt-get clean && apt-get clean
RUN echo "*** Installing libfmt ***" \ RUN echo "*** Installing libfmt ***" \
&& wget https://github.com/fmtlib/fmt/archive/5.3.0.tar.gz \ && wget https://github.com/fmtlib/fmt/archive/5.3.0.tar.gz \
&& tar -xzf 5.3.0.tar.gz && cd fmt-5.3.0/ \ && tar -xzf 5.3.0.tar.gz && cd fmt-5.3.0/ \
&& cmake -DCMAKE_INSTALL_PREFIX=/usr -DBUILD_SHARED_LIBS=On . \ && cmake -DCMAKE_INSTALL_PREFIX=/usr -DBUILD_SHARED_LIBS=On -DFMT_TEST=Off -DFMT_DOC=Off . \
&& make -j8 && make install \ && make -j8 && make install \
&& cd ../ && rm -rf fmt* && cd ../ && rm -rf fmt*
...@@ -17,7 +17,7 @@ RUN echo "*** Installing libfmt ***" \ ...@@ -17,7 +17,7 @@ RUN echo "*** Installing libfmt ***" \
RUN echo "*** Building nodejs/http_parser dependency ***" \ RUN echo "*** Building nodejs/http_parser dependency ***" \
&& wget https://github.com/nodejs/http-parser/archive/v2.9.2.tar.gz \ && wget https://github.com/nodejs/http-parser/archive/v2.9.2.tar.gz \
&& tar xvf v2.9.2.tar.gz && cd http-parser-2.9.2/ \ && tar xvf v2.9.2.tar.gz && cd http-parser-2.9.2/ \
&& PREFIX=/usr make -j8 && make install \ && PREFIX=/usr make -j8 install \
&& cd ../ && rm -rf http-parser* && cd ../ && rm -rf http-parser*
# libasio-dev (1.10.6-3) is too old # libasio-dev (1.10.6-3) is too old
......
...@@ -4,7 +4,7 @@ RUN apt-get update \ ...@@ -4,7 +4,7 @@ RUN apt-get update \
&& apt-get install -y llvm llvm-dev clang make cmake git wget libncurses5-dev libreadline-dev \ && apt-get install -y llvm llvm-dev clang make cmake git wget libncurses5-dev libreadline-dev \
nettle-dev libgnutls28-dev libuv1-dev libmsgpack-dev libjsoncpp-dev cython3 python3-dev \ nettle-dev libgnutls28-dev libuv1-dev libmsgpack-dev libjsoncpp-dev cython3 python3-dev \
python3-setuptools libcppunit-dev python3-pip \ python3-setuptools libcppunit-dev python3-pip \
autotools-dev autoconf \ autotools-dev autoconf libssl-dev \
&& apt-get remove -y gcc g++ && apt-get autoremove -y && apt-get clean && apt-get remove -y gcc g++ && apt-get autoremove -y && apt-get clean
ENV CC cc ENV CC cc
...@@ -13,7 +13,7 @@ ENV CXX c++ ...@@ -13,7 +13,7 @@ ENV CXX c++
RUN echo "*** Installing libfmt ***" \ RUN echo "*** Installing libfmt ***" \
&& wget https://github.com/fmtlib/fmt/archive/5.3.0.tar.gz \ && wget https://github.com/fmtlib/fmt/archive/5.3.0.tar.gz \
&& tar -xzf 5.3.0.tar.gz && cd fmt-5.3.0/ \ && tar -xzf 5.3.0.tar.gz && cd fmt-5.3.0/ \
&& cmake -DCMAKE_INSTALL_PREFIX=/usr -DBUILD_SHARED_LIBS=On . \ && cmake -DCMAKE_INSTALL_PREFIX=/usr -DBUILD_SHARED_LIBS=On -DFMT_TEST=Off -DFMT_DOC=Off . \
&& make -j8 && make install \ && make -j8 && make install \
&& cd ../ && rm -rf fmt* && cd ../ && rm -rf fmt*
...@@ -21,7 +21,7 @@ RUN echo "*** Installing libfmt ***" \ ...@@ -21,7 +21,7 @@ RUN echo "*** Installing libfmt ***" \
RUN echo "*** Building nodejs/http_parser dependency ***" \ RUN echo "*** Building nodejs/http_parser dependency ***" \
&& wget https://github.com/nodejs/http-parser/archive/v2.9.2.tar.gz \ && wget https://github.com/nodejs/http-parser/archive/v2.9.2.tar.gz \
&& tar xvf v2.9.2.tar.gz && cd http-parser-2.9.2/ \ && tar xvf v2.9.2.tar.gz && cd http-parser-2.9.2/ \
&& PREFIX=/usr make -j8 && make install \ && PREFIX=/usr make -j8 install \
&& cd ../ && rm -rf http-parser* && cd ../ && rm -rf http-parser*
# libasio-dev (1.10.6-3) is too old # libasio-dev (1.10.6-3) is too old
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment