Last active
June 25, 2017 18:04
-
-
Save tamanobi/d4cfe746f6f5cd9afecdfc513911f7c6 to your computer and use it in GitHub Desktop.
for NGT
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
docker build --tag ngt_dev . | |
docker run --name ngtdev -it -v `pwd`:/home/dev ngt_dev bash |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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