-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathDockerfile.devcontainer
63 lines (54 loc) · 2.04 KB
/
Dockerfile.devcontainer
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
# Dockerfile for use with vscode Remote-Containers plugin
FROM ubuntu:18.04
# Get g++ for compiling, wget to download Boost, git to clone source code repo,
# and make to automate program compilation with Makefile provided
RUN apt-get update \
&& apt-get install -y git \
g++ \
make \
wget
# Download boost, untar, setup install with bootstrap and only do the Program Options library,
# and then install
RUN cd /home && wget https://dl.bintray.com/boostorg/release/1.74.0/source/boost_1_74_0.tar.gz \
&& tar xfz boost_1_74_0.tar.gz \
&& rm boost_1_74_0.tar.gz \
&& cd boost_1_74_0 \
&& ./bootstrap.sh --prefix=/usr/local \
&& ./b2 install \
&& cd /home \
&& rm -rf boost_1_74_0
# Install build-essential, etc.
RUN apt install -y build-essential \
autoconf libtool \
pkg-config
# Install CMAKE (>3.13 required for gRPC build)
RUN wget https://github.com/Kitware/CMake/releases/download/v3.18.4/cmake-3.18.4-Linux-x86_64.sh \
-q -O /tmp/cmake-install.sh \
&& chmod u+x /tmp/cmake-install.sh \
&& mkdir /usr/bin/cmake \
&& /tmp/cmake-install.sh --skip-license --prefix=/usr/bin/cmake \
&& rm /tmp/cmake-install.sh
ENV PATH="/usr/bin/cmake/bin:${PATH}"
# Install zmq and gmp
RUN apt install -y libzmq3-dev
# Install gRPC and Protocol Buffers
RUN git clone --recurse-submodules -b v1.30.2 https://github.com/grpc/grpc \
&& cd grpc \
&& mkdir -p cmake/build \
&& cd cmake/build \
&& cmake -DgRPC_INSTALL=ON \
-DgRPC_BUILD_TESTS=OFF \
-DCMAKE_INSTALL_PREFIX=$MY_INSTALL_DIR \
-DBUILD_SHARED_LIBS=ON \
../.. \
&& make -j 4 \
&& make install
# Add python for gs++ make process
RUN apt-get install -y python libgmp-dev
# Document build process for gs++ (do this manually after opening container)
# RUN mkdir /workspaces/cpp_slp_graph_search/build_loc \
# && cd /workspaces/cpp_slp_graph_search/build_loc \
# && cmake \
# -DCMAKE_BUILD_TYPE=Debug \
# .. \
# && make