-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #11 from IntelLabs/master
Merge back master into develop
- Loading branch information
Showing
13 changed files
with
174 additions
and
64 deletions.
There are no files selected for viewing
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,80 @@ | ||
# Pull base image. | ||
FROM ubuntu:16.04 | ||
|
||
RUN apt-get -qq update | ||
RUN apt-get -qq install -y python python-dev python-pip python-virtualenv | ||
RUN apt-get -qq install -y bzip2 | ||
RUN apt-get install --no-install-recommends -y libjsoncpp-dev build-essential cmake git pkg-config libprotobuf-dev libleveldb-dev libsnappy-dev libhdf5-serial-dev protobuf-compiler libatlas-base-dev libboost-all-dev libgflags-dev libgoogle-glog-dev liblmdb-dev libgflags-dev libgoogle-glog-dev liblmdb-dev | ||
RUN apt-get install -y scons libjsoncpp-dev flex javacc libbison-dev openjdk-8-jdk | ||
RUN apt-get install -y autoconf automake libtool curl make g++ unzip | ||
RUN apt-get install -y cmake wget git zlib1g-dev libbz2-dev libssl-dev liblz4-dev mpich | ||
RUN apt-get install -y libjpeg8-dev libtiff5-dev libjasper-dev libpng12-dev libgtk-3-dev | ||
RUN apt-get install -y zlib1g-dev | ||
RUN apt-get install -y libbz2-dev | ||
RUN apt-get install -y libssl-dev | ||
RUN apt-get install -y liblz4-dev | ||
RUN apt-get install -y autoconf automake libtool curl make g++ unzip | ||
RUN apt-get install -y libopenmpi-dev | ||
RUN apt-get install -y libgtest-dev | ||
RUN apt-get install -y ed | ||
RUN apt-get install -y libgtk2.0-dev pkg-config libavcodec-dev libavformat-dev libswscale-dev | ||
RUN apt-get install -y libtbb2 libtbb-dev libjpeg-dev libpng-dev libtiff-dev libjasper-dev libdc1394-22-dev | ||
RUN pip install scons numpy | ||
RUN apt-get remove -y libprotobuf-dev protobuf-compiler | ||
RUN cd / && git clone https://github.com/google/protobuf.git | ||
RUN cd protobuf && git checkout v3.3.0 && ./autogen.sh && ./configure --prefix=/usr/local && make -j $(cat /proc/cpuinfo | wc -l) && make install && ldconfig | ||
RUN rm -rf /protobuf | ||
|
||
# Blosc | ||
RUN cd / && git clone https://github.com/Blosc/c-blosc.git | ||
RUN cd c-blosc && mkdir build && cd build && cmake -DCMAKE_INSTALL_PREFIX='/usr' .. && cmake --build . && ctest && cmake --build . --target install | ||
RUN rm -rf /c-blosc | ||
|
||
# Zstd | ||
RUN cd / && wget https://github.com/facebook/zstd/archive/v1.1.0.tar.gz && tar xf v1.1.0.tar.gz | ||
RUN cd zstd-1.1.0 && make install PREFIX='/usr' | ||
RUN cd /usr/src/gtest && cmake . && make && mv libgtest* /usr/lib/ | ||
|
||
# TileDB | ||
RUN cd / && wget https://github.com/TileDB-Inc/TileDB/archive/0.6.1.tar.gz && tar xf 0.6.1.tar.gz | ||
RUN cd TileDB-0.6.1 && mkdir build && cd build && cmake .. && make -j $(cat /proc/cpuinfo | wc -l) && make install | ||
RUN rm -rf /TileDB-0.6.1 | ||
|
||
# Valijson | ||
RUN cd / && git clone https://github.com/tristanpenman/valijson.git | ||
RUN cd valijson && cp -r include/* /usr/local/include/ | ||
|
||
# OpenCV | ||
RUN mkdir /opencv && cd /opencv && wget -O opencv.zip https://github.com/opencv/opencv/archive/3.3.0.zip | ||
RUN cd /opencv && unzip opencv.zip && cd opencv-3.3.0 && mkdir build && cd build && cmake -D CMAKE_BUILD_TYPE=Release -D CMAKE_INSTALL_PREFIX=/usr/local .. && make -j $(cat /proc/cpuinfo | wc -l) && make install && rm -rf /opencv | ||
|
||
# VCL install | ||
RUN cd / && wget https://github.com/intellabs/vcl/archive/v0.1.0.tar.gz && tar xf v0.1.0.tar.gz | ||
RUN mv vcl-0.1.0 vcl && cd vcl && scons -j16 | ||
|
||
# PMGD install | ||
RUN cd / && wget https://github.com/intellabs/pmgd/archive/v1.0.0.tar.gz && tar xf v1.0.0.tar.gz | ||
RUN mv pmgd-1.0.0 pmgd && cd pmgd && make | ||
RUN rm -rf /*.tar.gz | ||
|
||
# VDMS install | ||
RUN cd / && wget https://github.com/intellabs/vdms/archive/v1.0.0.tar.gz && tar xf v1.0.0.tar.gz | ||
RUN mv vdms-1.0.0 vdms && cd vdms && mkdir db && scons -j16 INTEL_PATH=/ | ||
|
||
RUN rm -rf /*.tar.gz | ||
RUN rm -rf /var/lib/apt/lists/* /root/.cache | ||
|
||
RUN echo '#!/bin/bash' > /start.sh | ||
RUN echo 'export LD_LIBRARY_PATH=/pmgd/lib:$(find /usr/local/lib/ / -type f -name "*.so" | xargs dirname | sort | uniq | tr "\n" ":")' >> /start.sh | ||
RUN echo 'cd /vdms' >> /start.sh | ||
RUN echo 'rm -rf db' >> /start.sh | ||
RUN echo 'mkdir db' >> /start.sh | ||
RUN echo 'mkdir db/images' >> /start.sh | ||
RUN echo 'mkdir db/images/pngs' >> /start.sh | ||
RUN echo 'mkdir db/images/jpgs' >> /start.sh | ||
RUN echo 'mkdir db/images/tiledb' >> /start.sh | ||
RUN echo 'mkdir db/images/tiledb/tdb' >> /start.sh | ||
RUN echo './vdms' >> /start.sh | ||
RUN chmod 755 /start.sh | ||
ENTRYPOINT "/start.sh" | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# VDMS Docker | ||
|
||
Here are the instructions to build a docker image of the VDMS Server. | ||
|
||
The build command is: | ||
|
||
Dockerfile | docker build -t vdms:latest . | ||
|
||
If you are under a proxy, use: | ||
|
||
Dockerfile | docker build -t vdms:latest --build-arg=http_proxy --build-arg=https_proxy . | ||
|
||
To run the docker image as a container, include the --net flag. | ||
This flag is needed as the server will be accepting connections on the default VDMS port (55555). | ||
|
||
// Run the image interactively | ||
docker run -it --net=host vdms:latest | ||
|
||
// or | ||
|
||
// Run the image and deattach it from your bash | ||
docker run -d --net=host vdms:latest | ||
|
||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,8 @@ | ||
scons -j123 | ||
rm log.log | ||
rm -r db | ||
mkdir db | ||
mkdir db/native_format | ||
mkdir db/native_format/pngs | ||
mkdir db/native_format/jpgs | ||
mkdir db/native_format/descriptors | ||
mkdir db/images | ||
mkdir db/images/pngs | ||
mkdir db/images/jpgs | ||
|
||
./vdms 2> log.log |
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,7 +10,7 @@ | |
"Email":"[email protected]", | ||
"Age": 86, | ||
"Birthday":{"_date":"Sat Oct 1 17:59:24 PDT 1936"}, | ||
"name":"Mark", | ||
"Name":"Mark", | ||
"fv": {"_blob":"Raghed----ghjhsglfhwa"} | ||
} | ||
} | ||
|
@@ -27,7 +27,7 @@ | |
"Age": 80, | ||
"Birthday":{"_date":"Sat Oct 1 17:59:24 PDT 1936"}, | ||
"fv":{"_blob" :"Ahmad----ghjhsglfhwa"}, | ||
"name": "Kai" | ||
"Name": "Kai" | ||
|
||
} | ||
} | ||
|
@@ -56,14 +56,14 @@ | |
"properties": { | ||
"Email":"[email protected]", | ||
"Age": 56, | ||
"Birthday":{"_date":"Sat Oct 1 17:59:24 PDT 1936"}, | ||
"Birthday":{"_date":"Sat Oct 7 17:59:24 PDT 1946"}, | ||
"Study": false, | ||
"avg": 32.4, | ||
"name": "Mathias", | ||
"Name": "Mathias", | ||
"fv": {"_blob":"----ghjhsglfhwa"} | ||
}, | ||
"constraints": | ||
{ "name": ["==", "Mathias"] | ||
{ "Name": ["==", "Mathias"] | ||
} | ||
} | ||
|
||
|
@@ -80,7 +80,7 @@ | |
"Birthday":{"_date":"Sat Oct 1 17:59:24 PDT 1936"}, | ||
"Study": true, | ||
"avg": 21.6, | ||
"name": "Alin", | ||
"Name": "Alin", | ||
"fv": {"_blob":"----ghjhsglfhwa"} | ||
|
||
} | ||
|
@@ -112,7 +112,7 @@ | |
}, | ||
|
||
"results": { | ||
"list": ["name"] | ||
"list": ["Name"] | ||
} | ||
} | ||
}, | ||
|
@@ -129,7 +129,7 @@ | |
}, | ||
|
||
"results": { | ||
"list": ["name"] | ||
"list": ["Name"] | ||
} | ||
} | ||
}, | ||
|
@@ -141,7 +141,7 @@ | |
"Age": [">", 0, "<=", 180 ] | ||
}, | ||
"results": { | ||
"list":["name","Age"] | ||
"list":["Name","Age"] | ||
} | ||
} | ||
}, | ||
|
@@ -159,7 +159,7 @@ | |
}, | ||
"results": { | ||
|
||
"list":["Age","name", "Email"], | ||
"list":["Age","Name", "Email"], | ||
"limit" :3 | ||
|
||
} | ||
|
@@ -177,7 +177,7 @@ | |
}, | ||
"results": { | ||
|
||
"list":["Age","name", "Email"], | ||
"list":["Age","Name", "Email"], | ||
"sort":"Email" | ||
} | ||
} | ||
|
@@ -190,7 +190,7 @@ | |
"Age": [">", 0, "<=", 100 ] | ||
}, | ||
"results": { | ||
"list":["name","Age","Email"], | ||
"list":["Name","Age","Email"], | ||
"sort" :"Age" | ||
} | ||
} | ||
|
@@ -205,7 +205,7 @@ | |
}, | ||
"results": { | ||
|
||
"list":["Age","name", "Email"], | ||
"list":["Age","Name", "Email", "Birthday"], | ||
"limit":2 | ||
|
||
|
||
|
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
Oops, something went wrong.