Skip to content

Commit 66d88fd

Browse files
committed
fixup! chore: dockerize mcrouter
1 parent 5d32879 commit 66d88fd

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

dockerfiles/mcrouter/Dockerfile

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ FROM debian:10.0-slim as build
33
ENV \
44
LANG=C.UTF-8 \
55
LC_ALL=C.UTF-8 \
6+
FBTHRIFT_VERSION=v2019.07.22.00 \
67
FIZZ_VERSION=v2019.07.22.00 \
78
FOLLY_VERSION=v2019.07.22.00 \
89
MCROUTER_VERSION=v0.40.0 \
@@ -15,6 +16,7 @@ RUN apt-get update \
1516
autoconf=2.69-11 \
1617
automake=1:1.16.1-4 \
1718
binutils-dev=2.31.1-16 \
19+
bison=2:3.3.2.dfsg-1 \
1820
build-essential=12.6 \
1921
ca-certificates=20190110 \
2022
cmake=3.13.4-1 \
@@ -73,6 +75,15 @@ RUN curl -Ls "https://github.com/facebook/wangle/archive/${WANGLE_VERSION}.tar.g
7375
&& make -j $(nproc) \
7476
&& make install
7577

78+
WORKDIR /usr/src/fbthrift
79+
80+
RUN curl -Ls "https://github.com/facebook/fbthrift/archive/${FBTHRIFT_VERSION}.tar.gz" \
81+
| tar xvzf - --strip-components=1 \
82+
&& cd build \
83+
&& cmake -Dcompiler_only=ON .. \
84+
&& make -j $(nproc) \
85+
&& make install
86+
7687
WORKDIR /usr/src/mcrouter
7788

7889
RUN curl -Ls "https://github.com/facebook/mcrouter/archive/${MCROUTER_VERSION}.tar.gz" \

0 commit comments

Comments
 (0)