diff --git a/demo/docker-compose.yml b/demo/docker-compose.yml index 154a87f1..9d5a48b1 100644 --- a/demo/docker-compose.yml +++ b/demo/docker-compose.yml @@ -1,7 +1,7 @@ version: '3.5' services: -# ----------------- Control Tower Database and Message Broker ----------------- + # ----------------- Control Tower Database and Message Broker ----------------- local_postgres: image: postgres:13 @@ -16,31 +16,28 @@ services: networks: - control-tower-net - - local_rabbitmq: - image: rabbitmq:3-management + image: rabbitmq:3-management hostname: local_rabbitmq volumes: - rbmq_data:/var/lib/rabbitmq/ - ports: - - 5672:5672 - - 15672:15672 + ports: + - 5672:5672 + - 15672:15672 networks: - control-tower-net -# ----------------- HelyOS Core ----------------- + # ----------------- HelyOS Core ----------------- helyos_core: image: helyosframework/helyos_core:test ports: - - 5002:5002 # Websocket - - 5000:5000 # GraphQL - - 8080:8080 # HelyOS Dashboard - + - 5002:5002 # Websocket + - 5000:5000 # GraphQL + - 8080:8080 # HelyOS Dashboard volumes: - ./settings/config:/etc/helyos/config/ @@ -48,23 +45,24 @@ services: - ./settings/rsa_keys/helyos_private.key:/etc/helyos/.ssl_keys/helyos_private.key:ro - ./settings/rsa_keys/helyos_public.key:/etc/helyos/.ssl_keys/helyos_public.key:ro - environment: # Check the documentation for more details: https://helyos-manual.readthedocs.io/en/latest/2-helyos-configuration/getting-started.html#helyos-settings - # DATABASE - - PGUSER=helyos_db_admin + environment: + # Check the documentation for more details: https://helyos-manual.readthedocs.io/en/latest/2-helyos-configuration/getting-started.html#helyos-settings + # DATABASE + - PGUSER=helyos_db_admin - PGPASSWORD=helyos_secret - - PGHOST=local_postgres - - PGDATABASE=smartfarm_db + - PGHOST=local_postgres + - PGDATABASE=smartfarm_db - PGPORT=5432 - + # GRAPHQL VARIABLES - GQLPORT=5000 - # RABBITMQ - - RBMQ_HOST=local_rabbitmq + # RABBITMQ + - RBMQ_HOST=local_rabbitmq - RBMQ_PORT=5672 - RBMQ_API_PORT=15672 - RBMQ_SSL=False - - RBMQ_API_SSL=False + - RBMQ_API_SSL=False # RBMQ ACCOUNTS - CREATE_RBMQ_ACCOUNTS=True @@ -73,11 +71,10 @@ services: - AGENT_AUTO_REGISTER_TOKEN=0001-0002-0003-0000-0004 # HelyOS SETTINGS - - RUN_MODE=production # test | production | migration - - MESSAGE_RATE_LIMIT=50 + - RUN_MODE=production # test | production | migration + - MESSAGE_RATE_LIMIT=50 - MESSAGE_UPDATE_LIMIT=20 - networks: - control-tower-net @@ -85,55 +82,51 @@ services: - local_postgres - local_rabbitmq - - -# ----------------- A Simple Truck Simulator ----------------- + # ----------------- A Simple Truck Simulator ----------------- agent_simulator_1: image: helyosframework/helyos_agent_slim_simulator:0.7.5 - environment: # AGENT ID - - UUID=Ab34069fc5-fdgs-434b-b87e-f19c5435113 - - ASSIGNMENT_FORMAT=trajectory # fixed | trajectory | straight_to_destination | trucktrix-path + - UUID=Ab34069fc5-fdgs-434b-b87e-f19c5435113 + - ASSIGNMENT_FORMAT=trajectory # fixed | trajectory | straight_to_destination | trucktrix-path - NAME=MY_TRACTOR - X0=-28000 - Y0=29000 - ORIENTATION=0.329 - - VELOCITY=1.8 + - VELOCITY=1.8 - VEHICLE_PARTS=2 - YARD_UID=1 - UPDATE_RATE=10 - # RABBITMQ - - RBMQ_HOST=local_rabbitmq + # RABBITMQ + - RBMQ_HOST=local_rabbitmq - RBMQ_PORT=5672 # - RBMQ_USERNAME= using REGISTRATION_TOKEN instead # - RBMQ_PASSWORD= using REGISTRATION_TOKEN instead - REGISTRATION_TOKEN=0001-0002-0003-0000-0004 networks: - - control-tower-net + - control-tower-net depends_on: - helyos_core - - local_rabbitmq + - local_rabbitmq - command: ["python", "main.py"] + command: [ "python", "main.py" ] deploy: restart_policy: condition: on-failure delay: 15s max_attempts: 5 - window: 60s - + window: 60s networks: control-tower-net: - external: false + external: false volumes: postgres_data: diff --git a/demo/settings/config/microservices.yml b/demo/settings/config/microservices.yml index cad29043..c3398efe 100644 --- a/demo/settings/config/microservices.yml +++ b/demo/settings/config/microservices.yml @@ -10,6 +10,7 @@ services: enable: true apikey: "CN783V9SygdG0deHgfesdfsaeNuCqwbm" timeout: 300 + description: "" context: map_data: true @@ -31,6 +32,7 @@ services: enable: true apikey: "ABy40lwSsdfafasdBiCbvU2hVEeY7t" timeout: 180 + description: "" context: map_data: true diff --git a/helyos_dashboard/package-lock.json b/helyos_dashboard/package-lock.json index ca78a174..2ab60a5d 100644 --- a/helyos_dashboard/package-lock.json +++ b/helyos_dashboard/package-lock.json @@ -25,7 +25,7 @@ "bootstrap": "^5.3.2", "cheap-ruler": "^3.0.2", "core-js": "^3.38.0", - "helyosjs-sdk": "2.1.0", + "helyosjs-sdk": "2.1.2", "js-yaml": "^4.1.0", "lodash": "^4.17.21", "rxjs": "^7.4.1", @@ -9266,9 +9266,9 @@ } }, "node_modules/helyosjs-sdk": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/helyosjs-sdk/-/helyosjs-sdk-2.1.0.tgz", - "integrity": "sha512-b0y0rJrESGXgHCu3JhDG4dQCPU11bcNozflxZZs2vKcAsldZF8vXFDrJningc6aIl9ofJw1cNRrYz9zXZDnDRw==", + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/helyosjs-sdk/-/helyosjs-sdk-2.1.2.tgz", + "integrity": "sha512-j5LmKp4zfJj22oDTi53UcMVG6IT9ha7MRkwDpEIT+3qNqxI6qP1wzE60px7JmCByAHZO6OxlFbYQKvGXj6UsSw==", "dependencies": { "apollo-cache-inmemory": "^1.3.7", "apollo-client": "^2.4.4", diff --git a/helyos_dashboard/package.json b/helyos_dashboard/package.json index 128199dc..9a6edc27 100644 --- a/helyos_dashboard/package.json +++ b/helyos_dashboard/package.json @@ -37,7 +37,7 @@ "bootstrap": "^5.3.2", "cheap-ruler": "^3.0.2", "core-js": "^3.38.0", - "helyosjs-sdk": "2.1.0", + "helyosjs-sdk": "2.1.2", "js-yaml": "^4.1.0", "lodash": "^4.17.21", "rxjs": "^7.4.1", diff --git a/helyos_dashboard/src/app/layout/all-services/all-services.component.html b/helyos_dashboard/src/app/layout/all-services/all-services.component.html index 81efcea3..aa191900 100644 --- a/helyos_dashboard/src/app/layout/all-services/all-services.component.html +++ b/helyos_dashboard/src/app/layout/all-services/all-services.component.html @@ -240,6 +240,17 @@