Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
social
SoMeDi Use Case - Lateral
Commits
23846f7c
Commit
23846f7c
authored
Jul 04, 2019
by
J. Fernando Sánchez
Browse files
New repository URL
parent
2483d9e6
Changes
7
Hide whitespace changes
Inline
Side-by-side
.gitignore
View file @
23846f7c
...
...
@@ -2,3 +2,4 @@
*.db
__pycache__
lateralbackup.jsons
backup.jsons
Makefile
View file @
23846f7c
NAME
:=
dashboard-somedi
IMAGENAMEWEB
:=
registry.cluster.gsi.dit.upm.es/s
efarad/dashboard-somedi
/web
IMAGENAME
:=
registry.cluster.gsi.dit.upm.es/s
efarad/dashboard-somedi
/gsicrawler
IMAGENAMEWEB
:=
registry.cluster.gsi.dit.upm.es/s
ocial/somedi-lateral
/web
IMAGENAME
:=
registry.cluster.gsi.dit.upm.es/s
ocial/somedi-lateral
/gsicrawler
VERSIONFILE
:=
VERSION
include
.makefiles/base.mk
...
...
@@ -17,4 +17,4 @@ build-latest: ## Build a specific version (e.g. build-2.7)
docker build
-t
'
$(IMAGENAME)
:
$(VERSION)
'
-f
Dockerfile .
;
push-latest
:
build-latest
##
Push the "latest" tag to dockerhub
docker push
'
$(IMAGENAME)
:
$(VERSION)
'
\ No newline at end of file
docker push
'
$(IMAGENAME)
:
$(VERSION)
'
README.md
View file @
23846f7c
...
...
@@ -5,7 +5,7 @@ Installation
Clone this repository and change to lateral-demo branch:
git clone https://lab.gsi.upm.es/s
efarad/dashboard-somedi
.git
git clone https://lab.gsi.upm.es/s
ocial/somedi-lateral
.git
Build and run the docker images:
...
...
@@ -18,7 +18,7 @@ Loading backup data
If you already have a list of analyzed posts you want to import into elasticsearch, you can do so with the loadBackup.py script.
For convenience, this script is included in the gsicrawler container.
You just need to copy your backup file (a jsonlines file named
`backup.jsons`
) in the
gsicrawle
r folder, and run this command:
You just need to copy your backup file (a jsonlines file named
`backup.jsons`
) in the
orchestrato
r folder, and run this command:
```
docker-compose exec orchestrator python loadBackup.py
...
...
dashboard/Dockerfile
View file @
23846f7c
from
node:
7.10.
0
from
node:
1
0
# Install gettext to get envsubst
RUN
apt-get update
&&
apt-get
install
-y
gettext
...
...
dashboard/Dockerfile.dev
View file @
23846f7c
from node:
7.10.
0
from node:
1
0
# Install gettext to get envsubst
RUN apt-get update && apt-get install -y gettext
...
...
docker-compose.yml
View file @
23846f7c
...
...
@@ -2,18 +2,18 @@ version: '2.1'
services
:
sefarad
:
build
:
./dashboard/
image
:
registry.cluster.gsi.dit.upm.es/s
efarad/dashboard-somedi
/web:${VERSION}
image
:
registry.cluster.gsi.dit.upm.es/s
ocial/somedi-lateral
/web:${VERSION}
ports
:
-
"
8080:8080"
environment
:
-
ES_ENDPOINT_EXTERNAL=${ES_ENDPOINT_EXTERNAL}
-
FUSEKI_ENDPOINT_EXTERNAL=${FUSEKI_ENDPOINT_EXTERNAL}
orchestrator
:
image
:
registry.cluster.gsi.dit.upm.es/social/somedi/orchestrator:${VERSION}
image
:
registry.cluster.gsi.dit.upm.es/social/somedi
-lateral
/orchestrator:${VERSION}
build
:
./orchestrator
volumes
:
-
"
./orchestrator/tasks.py:/soneti/tasks.py"
-
"
./backup.jsons:/soneti/backupjsons"
-
"
./backup.jsons:/soneti/backup
.
jsons"
ports
:
-
"
8082:8082"
environment
:
...
...
k8s/somedi-deployment.yaml
View file @
23846f7c
...
...
@@ -28,7 +28,7 @@ spec:
spec
:
containers
:
-
name
:
gsicrawler
image
:
registry.cluster.gsi.dit.upm.es/s
efarad/dashboard-somedi/gsicrawle
r:${VERSION}
image
:
registry.cluster.gsi.dit.upm.es/s
ocial/somedi-lateral/orchestrato
r:${VERSION}
imagePullPolicy
:
Always
resources
:
limits
:
...
...
@@ -63,7 +63,7 @@ spec:
spec
:
containers
:
-
name
:
${NAME}
image
:
registry.cluster.gsi.dit.upm.es/s
efarad/dashboard-somedi
/web:${VERSION}
image
:
registry.cluster.gsi.dit.upm.es/s
ocial/somedi-lateral
/web:${VERSION}
imagePullPolicy
:
Always
resources
:
limits
:
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment