Commit a8855a77 authored by militarpancho's avatar militarpancho
Browse files

Docker-compose bugs fixed

parent 9d033b93
......@@ -49,6 +49,10 @@ def semanticAnalysis(i):
r = requests.post('http://meaningcloud.senpy.cluster.gsi.dit.upm.es/api/', data={'algo':'sentiment-meaningCloud', 'apiKey':API_KEY_MEANING_CLOUD, 'i':i["schema:articleBody"][REQUEST_LONG*k:-1]})
time.sleep(1)
r = r.json()
if not 'entries' in r:
continue
if type(r["entries"][0]["entities"]) is dict:
r["entries"][0]["entities"] = [r["entries"][0]["entities"]]
for x, index in enumerate(r["entries"][0]["entities"]):
......
version: '2'
services:
elasticsearch:
image: "docker.elastic.co/elasticsearch/elasticsearch:5.5.2"
......@@ -36,10 +35,10 @@ services:
- sefarad-network
luigi:
build: ./luigi/
image: registry.cluster.gsi.dit.upm.es/sefarad/gsicrawler/
build: .
image: registry.cluster.gsi.dit.upm.es/sefarad/gsicrawler
volumes:
- ./luigi:/usr/src/app
- .:/usr/src/app
ports:
- "8082:8082"
networks:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment