-
Notifications
You must be signed in to change notification settings - Fork 24
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 #171 from FYP-Auto-Scale-JasmineGraph/master
Add tests for lst, adgr, and some other commads
- Loading branch information
Showing
45 changed files
with
7,286 additions
and
458 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
tests | ||
metadb | ||
performancedb | ||
docs | ||
logs | ||
.git | ||
.github | ||
.vscode | ||
.idea | ||
.dockerignore | ||
.gitignore | ||
test-docker.sh | ||
README.md | ||
LICENSE |
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
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,25 +1,46 @@ | ||
FROM miyurud/jasminegraph | ||
FROM ubuntu:focal | ||
WORKDIR /home/ubuntu | ||
RUN mkdir software | ||
WORKDIR /home/ubuntu/software | ||
|
||
RUN apt-get update | ||
COPY . jasminegraph/ | ||
RUN apt-get install --no-install-recommends -y apt-transport-https | ||
RUN apt-get update | ||
RUN apt-get install --no-install-recommends -y curl gnupg2 ca-certificates software-properties-common nlohmann-json3-dev | ||
RUN apt-get install --no-install-recommends -y git cmake build-essential sqlite3 libsqlite3-dev libssl-dev librdkafka-dev libboost-all-dev libtool libxerces-c-dev libflatbuffers-dev python3-pip | ||
RUN add-apt-repository ppa:deadsnakes/ppa | ||
RUN apt-get install --no-install-recommends -y python3.5-dev | ||
RUN apt-get install --no-install-recommends -y libjsoncpp-dev libspdlog-dev pigz | ||
|
||
RUN curl -fsSL https://download.docker.com/linux/debian/gpg | apt-key add - | ||
RUN add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" | ||
RUN apt-get update | ||
RUN apt-get install --no-install-recommends -y docker-ce-cli | ||
|
||
RUN git clone --single-branch --depth 1 https://github.com/mfontanini/cppkafka.git | ||
|
||
WORKDIR /home/ubuntu/software | ||
RUN git clone --single-branch --depth 1 --branch v5.1.1-DistDGL-v0.5 https://github.com/KarypisLab/METIS.git | ||
WORKDIR /home/ubuntu/software/METIS | ||
RUN git submodule update --init | ||
RUN make config shared=1 cc=gcc prefix=/usr/local | ||
RUN make install | ||
|
||
RUN mkdir /home/ubuntu/software/cppkafka/build | ||
WORKDIR /home/ubuntu/software/cppkafka/build | ||
RUN cmake .. | ||
RUN make -j4 | ||
RUN make install | ||
|
||
ENV HOME="/home/ubuntu" | ||
RUN mkdir -p /var/tmp/nmon | ||
WORKDIR /home/ubuntu/software/jasminegraph | ||
RUN apt-get update && \ | ||
sed -i '/target_link_libraries(JasmineGraph \/usr\/local\/lib\/libmetis.so)/c\target_link_libraries(JasmineGraph \/usr\/local\/lib\/libmetis.so)' CMakeLists.txt && \ | ||
sed -i '/target_link_libraries(JasmineGraph \/usr\/local\/lib\/libxerces-c-3.2.so)/c\target_link_libraries(JasmineGraph \/usr\/local\/lib\/libxerces-c-3.2.so)' CMakeLists.txt && \ | ||
sed -i '/target_link_libraries(JasmineGraph \/usr\/local\/lib\/libmetis.a)/c\#target_link_libraries(JasmineGraph \/usr\/local\/lib\/libmetis.a)' CMakeLists.txt && \ | ||
sed -i '/target_link_libraries(JasmineGraph $ENV{HOME}\/software\/xerces-c-3.2.2\/lib\/libxerces-c.so)/c\#target_link_libraries(JasmineGraph $ENV{HOME}\/software\/xerces-c-3.2.2\/lib\/libxerces-c.so)' CMakeLists.txt && \ | ||
sed -i '/target_link_libraries(JasmineGraph \/opt\/lib\/libxerces-c.a)/c\#target_link_libraries(JasmineGraph \/opt\/lib\/libxerces-c.a)' CMakeLists.txt && \ | ||
sed -i '/target_link_libraries(JasmineGraph $ENV{HOME}\/software\/cppkafka\/build\/usr\/local\/lib\/libcppkafka.so)/c\target_link_libraries(JasmineGraph \/usr\/local\/lib\/libcppkafka.so)' CMakeLists.txt && \ | ||
sed -i '/namespace JasminGraph.Edgestore;/c\namespace JasmineGraph.Edgestore;' src/util/dbutil/edgestore.fbs && \ | ||
sed -i '/org.jasminegraph.partitioner.metis.bin=home\/ubuntu\/software\/metis-5.1.0\/bin/c\org.jasminegraph.partitioner.metis.bin=\/home\/ubuntu\/software\/metis\/metis-5.1.0\/bin' conf/jasminegraph-server.properties | ||
WORKDIR /home/ubuntu/software/flatbuffers | ||
RUN ./flatc --cpp -o /home/ubuntu/software/jasminegraph/src/util/dbutil /home/ubuntu/software/jasminegraph/src/util/dbutil/edgestore.fbs && \ | ||
./flatc --cpp -o /home/ubuntu/software/jasminegraph/src/util/dbutil /home/ubuntu/software/jasminegraph/src/util/dbutil/attributestore.fbs && \ | ||
./flatc --cpp -o /home/ubuntu/software/jasminegraph/src/util/dbutil /home/ubuntu/software/jasminegraph/src/util/dbutil/partedgemapstore.fbs | ||
WORKDIR /home/ubuntu/software/jasminegraph | ||
ENV JASMINEGRAPH_HOME="/home/ubuntu/software/jasminegraph" | ||
RUN mkdir /home/ubuntu/software/jasminegraph | ||
WORKDIR /home/ubuntu/software/jasminegraph | ||
RUN pip install tensorflow==2.5.3 | ||
RUN pip install -U scikit-learn | ||
COPY . . | ||
RUN pip install -r ./GraphSAGE/requirements | ||
|
||
RUN sh build.sh | ||
ENTRYPOINT ["/home/ubuntu/software/jasminegraph/run-docker.sh"] | ||
CMD ["bash"] | ||
CMD ["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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,5 @@ | ||
absl-py==0.2.2 | ||
astor==0.6.2 | ||
backports.weakref==1.0.post1 | ||
bleach==1.5.0 | ||
decorator==4.3.0 | ||
enum34==1.1.6 | ||
funcsigs==1.0.2 | ||
futures==3.2.0 | ||
gast==0.2.0 | ||
grpcio==1.12.1 | ||
html5lib==0.9999999 | ||
Markdown==2.6.11 | ||
mock==2.0.0 | ||
networkx==1.11 | ||
numpy==1.14.5 | ||
pbr==4.0.4 | ||
protobuf==3.6.0 | ||
scikit-learn==0.19.1 | ||
scipy==1.1.0 | ||
six==1.11.0 | ||
sklearn==0.0 | ||
tensorboard==1.8.0 | ||
tensorflow==1.8.0 | ||
termcolor==1.1.0 | ||
Werkzeug==0.14.1 | ||
numpy==1.17.3 | ||
scipy==1.4.1 | ||
joblib==1.1.1 | ||
threadpoolctl==2.0.0 |
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
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
Oops, something went wrong.