Skip to content
Snippets Groups Projects
Commit 4161a8bd authored by Steffen Vogel's avatar Steffen Vogel :santa_tone2:
Browse files

added VILLAScontroller to the demo

parent 5bb32620
No related branches found
No related tags found
No related merge requests found
Pipeline #
......@@ -7,3 +7,6 @@
[submodule "frontend"]
path = frontend
url = ../VILLASweb.git
[submodule "controller"]
path = controller
url = git@git.rwth-aachen.de:acs/public/villas/VILLAScontroller.git
FROM fedora:27
RUN dnf -y install \
python3 \
python3-pip
COPY controller /controller
COPY etc/controller/config.json /etc/villas/controller/config.json
WORKDIR /controller
RUN mkdir -p /usr/local/lib/python3.6/site-packages/
RUN python3 setup.py install
Subproject commit 2405c50c49cad65f4749020f7cc290e07e74274a
......@@ -79,11 +79,24 @@ services:
- "8081:8081"
# AMQP broker for VILLAScontroller
# broker:
# image: rabbitmq:management
# environment:
# RABBITMQ_DEFAULT_USER: "villas"
# RABBITMQ_DEFAULT_PASS: "s3c0sim4!"
# ports:
# - "8080:15672"
# - "5672:5672"
broker:
image: rabbitmq:management
environment:
RABBITMQ_DEFAULT_USER: "villas"
RABBITMQ_DEFAULT_PASS: "s3c0sim4!"
ports:
- "8080:15672"
- "5672:5672"
networks:
- default
# A VILLAScontroller for creating some dummy simulators
controller:
build:
context: .
dockerfile: Dockerfile.controller
command: villas-ctl -b "amqp://villas:s3c0sim4!@broker/%2F" -c /etc/villas/controller/config.json daemon
depends_on:
- broker
networks:
- default
{
"simulators" : [
{
"name" : "Dummy Simulator #1",
"type" : "dummy",
"realm" : "de.rwth-aachen.eonerc.acs",
"uuid" : "e15f5ad4-041f-11e8-9bf3-23372608bf60",
"location" : "Steffen's Laptop",
"owner" : "svo"
},
{
"name" : "Dummy Simulator #2",
"type" : "dummy",
"realm" : "de.rwth-aachen.eonerc.acs",
"uuid" : "ef6f6e46-044e-11e8-812f-17b6617a2f37",
"location" : "Markus' Laptop",
"owner" : "mgr"
}
]
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment