-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
81 additions
and
16 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 |
---|---|---|
@@ -1,16 +1,17 @@ | ||
{ | ||
"name": "Keep Current - Web Miner and Document finder", | ||
"description": | ||
"It opens an API for cron to trigger a search or update the query", | ||
"image": "heroku/python", | ||
"repository": "https://github.com/Keep-Current/Web-Miner", | ||
"keywords": ["python", "crawler", "miner", "flask"], | ||
"environments": { | ||
"test": { | ||
"scripts": { | ||
"test-setup": "python manage.py collectstatic --noinput", | ||
"test": "python manage.py test" | ||
} | ||
} | ||
} | ||
} | ||
{ | ||
"name": "Keep Current - Web Miner and Document finder", | ||
"description": | ||
"It opens an API for cron to trigger a search or update the query", | ||
"image": "heroku/python", | ||
"repository": "https://github.com/Keep-Current/Web-Miner", | ||
"keywords": ["python", "crawler", "miner", "flask"], | ||
"stack": "heroku-16", | ||
"environments": { | ||
"test": { | ||
"scripts": { | ||
"test-setup": "python app.py collectstatic --noinput", | ||
"test": "python app.py test" | ||
} | ||
} | ||
} | ||
} |
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,21 @@ | ||
FROM wearedevelopers/alpine-ml:v0.6 | ||
|
||
LABEL MAINTAINER="https://github.com/Keep-Current/web-miner" | ||
|
||
WORKDIR /usr/local/bin | ||
WORKDIR /usr/local/engine | ||
|
||
COPY ./requirements.txt ./ | ||
|
||
RUN apk update && \ | ||
apk --no-cache add libstdc++ openssl libressl-dev ca-certificates && \ | ||
apk --no-cache add --virtual builddeps g++ gfortran musl-dev lapack-dev gcc make && \ | ||
pip install -r requirements.txt && \ | ||
apk del builddeps && \ | ||
rm -rf /root/.cache | ||
|
||
# Copies Everything | ||
COPY ./ ./ | ||
|
||
#--log-level=info --log-file=./logs/gunicorn.log --access-logfile=./logs/gunicorn-access.log | ||
CMD gunicorn -w 4 -b 0.0.0.0:${PORT} wsgi:app |
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,29 @@ | ||
FROM python:3.6-alpine3.8 | ||
|
||
LABEL MAINTAINER="Liad Magen, [email protected]" | ||
|
||
ENV CFLAGS="-fPIC" | ||
|
||
WORKDIR /usr/local/include | ||
|
||
RUN apk --no-cache add lapack && \ | ||
apk --no-cache add --virtual builddeps g++ gfortran musl-dev lapack-dev gcc make && \ | ||
# musl-dev python3-dev openblas-dev && \ | ||
\ | ||
wget https://mupdf.com/downloads/archive/mupdf-1.13.0-source.tar.gz -O - | tar -xz && \ | ||
mv mupdf-1.13.0-source mupdf && \ | ||
cd mupdf && \ | ||
make HAVE_X11=no HAVE_GLFW=no HAVE_GLUT=no prefix=/usr/local && \ | ||
make HAVE_X11=no HAVE_GLFW=no HAVE_GLUT=no prefix=/usr/local install && \ | ||
mv /usr/local/include/mupdf/thirdparty /usr/local/thirdparty | ||
|
||
WORKDIR /opt/app | ||
|
||
RUN pip install numpy==1.15.4 && \ | ||
pip install scipy==1.1.0 && \ | ||
pip install scikit-learn==0.20 && \ | ||
pip install pandas==0.23.4 && \ | ||
pip install -U spacy==2.0.17.dev1 && \ | ||
python -m spacy download en && \ | ||
apk del builddeps && \ | ||
rm -rf /root/.cache |
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,12 @@ | ||
version: '3' | ||
services: | ||
engine: | ||
build: | ||
context: ../ | ||
dockerfile: deploy/Dockerfile | ||
image: keep-current/web-miner | ||
tty: true | ||
ports: | ||
- "5000:5000" | ||
environment: | ||
- "PORT=5000" |
2 changes: 2 additions & 0 deletions
2
tests/external_interfaces/flask_server/rest/test_arxiv_document.py
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,2 @@ | ||
"""Testing the REST interface | ||
""" |
Empty file.