-
Notifications
You must be signed in to change notification settings - Fork 25
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 #34 from a-mma/develop
Develop
- Loading branch information
Showing
16 changed files
with
118 additions
and
191 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
FROM ubuntu:18.04 | ||
MAINTAINER a_mma | ||
|
||
# install couchdb | ||
RUN apt-get update; apt-get install -y curl; apt-get install -y git | ||
RUN echo "deb https://apache.bintray.com/couchdb-deb bionic main" \ | ||
| tee -a /etc/apt/sources.list | ||
RUN apt-get install -y gnupg | ||
RUN curl -L https://couchdb.apache.org/repo/bintray-pubkey.asc \ | ||
| apt-key add - | ||
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y couchdb | ||
|
||
# clone AquilaDB src | ||
RUN mkdir AquilaDB && cd AquilaDB && git clone https://github.com/a-mma/AquilaDB.git . && git checkout develop | ||
|
||
# setup node environment | ||
RUN curl -sL https://deb.nodesource.com/setup_10.x | bash - | ||
RUN apt install -y nodejs | ||
RUN apt-get install -y make | ||
RUN cd AquilaDB/src && rm package-lock.json || true && npm install | ||
|
||
# setup python environment | ||
RUN python3 --version | ||
RUN apt-get -y install python3-pip | ||
RUN apt-get install -y wget | ||
RUN wget --quiet https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh -O ~/miniconda.sh && \ | ||
/bin/bash ~/miniconda.sh -b -p /opt/conda && \ | ||
rm ~/miniconda.sh && \ | ||
ln -s /opt/conda/etc/profile.d/conda.sh /etc/profile.d/conda.sh && \ | ||
echo ". /opt/conda/etc/profile.d/conda.sh" >> ~/.bashrc && \ | ||
echo "conda activate base" >> ~/.bashrc | ||
ENV PATH /opt/conda/bin:$PATH | ||
RUN conda create -n myenv python && conda install faiss-cpu=1.5.1 -c pytorch -y | ||
RUN python -m pip install grpcio-tools annoy pyyaml | ||
|
||
# install pm2 to run services | ||
RUN npm install pm2 -g | ||
|
||
# make init script executable | ||
RUN chmod +x /AquilaDB/src/init_aquila_db.sh | ||
|
||
# create DB data directory | ||
RUN mkdir /data && mkdir /AquilaDB/src/data && \ | ||
ln -s /opt/couchdb/data /data/DDB && \ | ||
ln -s /AquilaDB/src/data /data/VDB | ||
|
||
CMD /AquilaDB/src/init_aquila_db.sh && tail -f /dev/null |
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
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,4 +1,3 @@ | ||
const btoa = require('btoa') | ||
const faiss_client = require('../faissclient') | ||
|
||
module.exports = { | ||
|
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.