Commit fa6d60b9 authored by Alberto Pascual's avatar Alberto Pascual
Browse files

default image, minor changes

parent 6c4c54ff
......@@ -16,4 +16,4 @@ RUN chmod +x /usr/local/bin/run-cron.sh
ENTRYPOINT ["run-cron.sh"]
CMD ["10", "isis"]
\ No newline at end of file
CMD ["cron","10", "isis"]
\ No newline at end of file
......@@ -18,7 +18,7 @@
<template is="dom-bind">
<elastic-client
config='{"host": ""}'
config='{"host": "localhost:19200"}'
client="{{client}}"
cluster-status="{{myStatus}}">
</elastic-client>
......
......@@ -58,15 +58,24 @@ services:
depends_on:
- elasticsearch
- fuseki
web:
image: gsiupm/dashboard-gsicrawler:0.2.6
ports:
- "8080:8080"
environment:
- FUSEKI_ENDPOINT_EXTERNAL=${FUSEKI_ENDPOINT_EXTERNAL}
- ES_ENDPOINT_EXTERNAL=${ES_ENDPOINT_EXTERNAL}
depends_on:
- fuseki
- elasticsearch
dashboard:
build: ./demodashboard/
volumes:
- ./demodashboard:/usr/src/app
ports:
- "8080:8080"
- "8090:8080"
environment:
- FUSEKI_ENDPOINT_EXTERNAL=${FUSEKI_ENDPOINT_EXTERNAL}
- ES_ENDPOINT_EXTERNAL=${ES_ENDPOINT_EXTERNAL}
depends_on:
- fuseki
......
......@@ -7,7 +7,6 @@ def retrieveNytimesNews(search, num, filepath):
r = requests.get("https://query.nytimes.com/svc/add/v1/sitesearch.json?q=" + search + "&spotlight=true&facet=true")
response = r.json()["response"]["docs"]
news = []
with open(filepath, 'a') as outfile:
for newsitem in response:
......@@ -23,7 +22,10 @@ def retrieveNytimesNews(search, num, filepath):
aux["schema:author"] = newsitem["source"]
aux["schema:headline"] = newsitem["headline"]["main"]
aux["schema:search"] = search
aux["schema:thumbnailUrl"] = "https://www.nytimes.com/" + newsitem["multimedia"][0]["url"]
if (len(newsitem["multimedia"]) > 0):
aux["schema:thumbnailUrl"] = "https://www.nytimes.com/" + newsitem["multimedia"][0]["url"]
else:
aux["schema:thumbnailUrl"] = "https://www.neto.com.au/assets/images/default_product.gif"
news.append(aux)
for newsitem in news:
......
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