-
Notifications
You must be signed in to change notification settings - Fork 280
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[CLIPPER-224] Replace boost futures with folly futures #266
Changes from 24 commits
9edb5a7
fb14f1b
31a87dd
e90ad47
632a837
e19fe59
1679bf7
3380693
e51daa3
efca36e
1f86054
c5ea6b8
fd3a628
fdbffe1
b55ba54
f389778
6ea49b8
ddce8dc
eb87cac
0a44998
3107dc5
b20532a
5604672
7463722
66a96da
d320012
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
FROM frolvlad/alpine-gxx | ||
|
||
RUN echo "@testing http://nl.alpinelinux.org/alpine/edge/testing" >> /etc/apk/repositories | ||
|
||
RUN apk add --no-cache git bash make boost-dev cmake libev-dev hiredis-dev zeromq-dev \ | ||
libtool automake autoconf-archive@testing lz4-dev xz-dev snappy-dev zlib-dev \ | ||
glog-dev@testing scons openssl-dev libevent-dev | ||
|
||
# Set up Folly | ||
|
||
## Install DoubleConversion | ||
RUN git clone https://github.com/google/double-conversion \ | ||
&& cd double-conversion \ | ||
&& git checkout tags/v3.0.0 \ | ||
&& cmake -DBUILD_SHARED_LIBS=ON . \ | ||
&& make \ | ||
&& make install \ | ||
&& ln -s src double-conversion | ||
|
||
ENV DOUBLE_CONVERSION_HOME=/double-conversion/double-conversion/ | ||
|
||
ENV LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$DOUBLE_CONVERSION_HOME | ||
|
||
## Install GFLags | ||
RUN git clone https://github.com/gflags/gflags \ | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Pin this to a specific release There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Done |
||
&& cd gflags \ | ||
&& git checkout tags/v2.2.1 \ | ||
&& mkdir build \ | ||
&& cd build \ | ||
&& cmake -DBUILD_SHARED_LIBS=ON .. \ | ||
&& make install | ||
|
||
## Install Folly | ||
RUN git clone https://github.com/facebook/folly \ | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Pin this to a specific release There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Done |
||
&& cd folly/folly \ | ||
&& git checkout tags/v2017.08.14.00 \ | ||
&& autoreconf -ivf \ | ||
&& ./configure LDFLAGS=-L$DOUBLE_CONVERSION_HOME/ CPPFLAGS=-I$DOUBLE_CONVERSION_HOME \ | ||
&& make \ | ||
&& make install |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
FROM frolvlad/alpine-gxx | ||
ARG CODE_VERSION | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Give this arg a default version (eg https://github.com/ucbrise/clipper/blob/develop/PythonContainerDockerfile#L1), otherwise the automated builds on Docker Hub will fail. |
||
FROM clipper/lib_base:${CODE_VERSION} | ||
|
||
COPY ./ /clipper | ||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,11 @@ | ||
FROM frolvlad/alpine-gxx | ||
ARG CODE_VERSION | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Give this a default argument (see above comment) |
||
FROM clipper/lib_base:${CODE_VERSION} | ||
|
||
# Build Clipper | ||
|
||
COPY ./ /clipper | ||
|
||
RUN apk add --no-cache git bash make boost-dev cmake libev-dev hiredis-dev zeromq-dev \ | ||
&& cd /clipper/src/libs/spdlog \ | ||
RUN cd /clipper/src/libs/spdlog \ | ||
&& git apply ../patches/make_spdlog_compile_linux.patch \ | ||
&& cd /clipper \ | ||
&& ./configure --cleanup-quiet \ | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's pin this to a specific release
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done