Service: Deltares Visualisation Service - SeaDataCloud/Documentation GitHub Wiki
How to deploy Deltares' Visualisation Service
Basic Info
- Running jellyfish
- Runs behind nginx proxy (Fedor, Kostas)
- Login works with the dashboard (set up in nginx)
- What about the data mounts? Still has to be checked/tested.
- It ran fine as user
root
. - WIP: Switched from root to some other user
- To be done: Documentation
- Then, Fedor will be working on the visualisations themselves, and will notify us whenever new images are ready to be deployed.
- Fedor also will ask whenever new data needs to be uploaded.
- It would be nice to have access to the log files via Elasticsearch etc...
Nginx proxy (Fedor, Kostas)
Data
The service needs some data mounted. Fedor provided it for download on 20200210 during our coding sprint in Athens. We downloaded it and added it to `` (link https://surfdrive.surf.nl/files/index.php/s/dZ1bI......./download)
Deployment
by Kostas E., 2020-02-13
Visualization setup on Jellyfish
Intro
VIZ has been set up on the jellyfish.argo.grnet.gr server under the /root/viz/
directory with the following files.
files
docker-compose.yml
Spawning the specified containers withdocker-compose up -d
nginx/nginx.conf
This conf is mounted to the default.conf file inside the nxing server of the viz service.
! Find files at sdc-visualization repo
mounts
On path /home/vre/nextcloud_data/
we have the user data and we also have the service data under /var/visualization_data
both as a bind mount to the rest container.
Network
The command docker-compose up -d
will also create a docker network named viz_deltares
that it will be used by this service's containers.
Note To setup an nginx reverse proxy we added the network to the proxy_nginx container.
docker run -v /root/cert:/root/cert -v /root/nginx/proxy.conf:/etc/nginx/conf.d/default.conf -p 80:80 -p 443:443 --network="viz_deltares" --name "proxy_nginx" -d nginx:latest
or if the proxy_nginx container is already running execute
docker network viz_deltares proxy_nginx
Maintenance
Starting Up
$ cd /root/viz
$ docker-compose up -d
Update Service
$ cd /root/viz
$ docker-compose pull
$ docker-compose down && docker-compose up -d
Stop Service
$ cd /root/viz
$ docker-compose down
Maintenance
How to change the image:
cd /root/viz
vi docker-compose.yml
# Change the image name(s), then restart the service!
How to restart the service:
cd /root/viz
docker-compose down && docker-compose up -d && docker-compose logs --tail=100 - f
# (this command has a shortcut in ~/.bashrc, called "doco")