Commit fa2da55a authored by Felix Delattre's avatar Felix Delattre
Browse files

Changed paths to repositories and renamed rcom

parent e2a10671
Pipeline #22667 passed with stage
in 14 seconds
#!/bin/bash
#
# run.sh: Instance-a of `rabotnik` example.
# Sets up example database and runs rcli command.
# Sets up example database and runs rcom command.
# Copyright (C) 2021:
# Helmholtz-Zentrum Potsdam Deutsches GeoForschungsZentrum GFZ
......@@ -27,5 +27,5 @@ psql -h database-1 -U postgres -d buildings -f /tmp/database/example_data.sql
psql -h database-2 -U postgres -f /tmp/database/create_database.sql
psql -h database-2 -U postgres -d buildings -f /tmp/database/create_table.sql
# Run rcli test
wait-for-it -t 30 $RABOTNIK_MESSAGE_BUS_HOST:$RABOTNIK_MESSAGE_BUS_PORT -- sleep 15; rcli --building-id=42
# Run rcom test
wait-for-it -t 30 $RABOTNIK_MESSAGE_BUS_HOST:$RABOTNIK_MESSAGE_BUS_PORT -- sleep 15; rcom --building-id=42
......@@ -19,30 +19,30 @@ services:
# rabotnik main message bus based on rabbitmq
rabotnik-message-bus:
build: ../docker-rabotnik-message-bus
build: ../../containers/docker-rabotnik-message-bus
# rabotnik rcli
rabotnik-rcli:
build: ../docker-rcli-instance
# rabotnik rcom
rabotnik-rcom:
build: ../../containers/docker-rcom-instance
volumes:
- ../rabotnik:/srv/rabotnik
- ../rcli:/srv/rcli
- ../rcom:/srv/rcom
- ./data/database:/tmp/database
# rabotnik instance a
rabotnik-instance-a:
build: ../docker-rabotnik-instance
build: ../../containers/docker-rabotnik-instance
volumes:
- ../rabotnik:/srv/rabotnik
# rabotnik instance b
rabotnik-instance-b:
build: ../docker-rabotnik-instance
build: ../../containers/docker-rabotnik-instance
volumes:
- ../rabotnik:/srv/rabotnik
# rabotnik instance c
rabotnik-instance-c:
build: ../docker-rabotnik-instance
build: ../../containers/docker-rabotnik-instance
volumes:
- ../rabotnik:/srv/rabotnik
......@@ -19,7 +19,7 @@ services:
# rabotnik main message bus based on rabbitmq
rabotnik-message-bus:
build: https://git.gfz-potsdam.de/dynamicexposure/rabotnik/docker-rabotnik-message-bus.git
build: https://git.gfz-potsdam.de/dynamicexposure/rabotnik/containers/docker-rabotnik-message-bus.git
env_file: .env
ports:
- "1883:1883" # mqtt port
......@@ -27,10 +27,10 @@ services:
- "15672:15672" # management
- "15692:15692"
# rabotnik rcli
rabotnik-rcli:
# rabotnik rcom
rabotnik-rcom:
env_file: .env
build: https://git.gfz-potsdam.de/dynamicexposure/rabotnik/docker-rcli-instance.git
build: https://git.gfz-potsdam.de/dynamicexposure/rabotnik/containers/docker-rcom-instance.git
depends_on:
- rabotnik-message-bus
- rabotnik-instance-b
......@@ -38,14 +38,14 @@ services:
- database-1
- database-2
volumes:
- ./data/rcli-example:/srv/rcli-example
- ./data/rcom-example:/srv/rcom-example
- ./data/database:/tmp/database
command: /srv/rcli-example/run.sh
command: /srv/rcom-example/run.sh
# rabotnik instance a
rabotnik-instance-a:
env_file: .env
build: https://git.gfz-potsdam.de/dynamicexposure/rabotnik/docker-rabotnik-instance.git
build: https://git.gfz-potsdam.de/dynamicexposure/rabotnik/containers/docker-rabotnik-instance.git
depends_on:
- rabotnik-message-bus
- rabotnik-instance-b
......@@ -56,7 +56,7 @@ services:
# rabotnik instance b
rabotnik-instance-b:
env_file: .env
build: https://git.gfz-potsdam.de/dynamicexposure/rabotnik/docker-rabotnik-instance.git
build: https://git.gfz-potsdam.de/dynamicexposure/rabotnik/containers/docker-rabotnik-instance.git
depends_on:
- rabotnik-message-bus
volumes:
......@@ -65,7 +65,7 @@ services:
# rabotnik instance c
rabotnik-instance-c:
env_file: .env
build: https://git.gfz-potsdam.de/dynamicexposure/rabotnik/docker-rabotnik-instance.git
build: https://git.gfz-potsdam.de/dynamicexposure/rabotnik/containers/docker-rabotnik-instance.git
depends_on:
- rabotnik-message-bus
volumes:
......
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