Skip to content

Instantly share code, notes, and snippets.

@tamanobi
Last active June 25, 2017 18:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tamanobi/d4cfe746f6f5cd9afecdfc513911f7c6 to your computer and use it in GitHub Desktop.
Save tamanobi/d4cfe746f6f5cd9afecdfc513911f7c6 to your computer and use it in GitHub Desktop.
for NGT
#!/bin/bash
docker build --tag ngt_dev .
docker run --name ngtdev -it -v `pwd`:/home/dev ngt_dev bash
FROM ubuntu
WORKDIR /home
RUN apt-get update && apt-get install -y build-essential git curl unzip && \
curl -vL https://github.com/yahoojapan/NGT/archive/v1.1.0.zip -O && \
unzip ./v1.1.0.zip && rm ./v1.1.0.zip && \
curl https://cmake.org/files/v3.8/cmake-3.8.2-Linux-x86_64.tar.gz -O && \
tar -xvf ./cmake-3.8.2-Linux-x86_64.tar.gz && rm -f ./cmake-3.8.2-Linux-x86_64.tar.gz && \
cd NGT-1.1.0 && mkdir build && cd build && \
/home/cmake-3.8.2-Linux-x86_64/bin/cmake .. && \
make && make install && \
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib && \
rm -rf /home/cmake-3.8.2-Linux-x86_64
ENV LD_LIBRARY_PATH /usr/local/lib:${LD_LIBRARY_PATH}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment