Skip to content

Commit 642958a

Browse files
committed
wip
1 parent b32e465 commit 642958a

File tree

3 files changed

+15
-1
lines changed

3 files changed

+15
-1
lines changed

scripts/deployments/deploy_everything_locally.bash

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -258,4 +258,9 @@ if [ "$start_simcore" -eq 0 ]; then
258258
pushd "${service_dir}"
259259
call_make "." up-"$stack_target"
260260
popd
261+
log_info "starting vendor services..."
262+
service_dir="${repo_basedir}"/services/vendors
263+
pushd "${service_dir}"
264+
call_make "." up-"$stack_target"
265+
popd
261266
fi

services/vendors/docker-compose.yml.j2

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,8 @@ services:
4343
deploy:
4444
replicas: ${VENDOR_CHATBOT_REPLICAS}
4545
placement:
46-
constraints: []
46+
constraints:
47+
- node.labels.simcore==true
4748
resources:
4849
limits:
4950
cpus: "1.0"
@@ -64,6 +65,8 @@ services:
6465
- traefik.http.routers.vendor_chat.tls=true
6566
- traefik.http.routers.vendor_chat.rule={{ generate_vendors_traefik_rule(VENDOR_CHATBOT_PRODUCTS, VENDOR_CHATBOT_SUBDOMAIN_PREFIX) }}
6667
- traefik.http.routers.vendor_chat.middlewares=authenticated_platform_user@swarm
68+
- prometheus-job=vendor-chat
69+
- prometheus-port=8000
6770
networks:
6871
- public
6972
networks:

services/vendors/template.env

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,10 @@ VENDOR_MANUAL_REPLICAS=${VENDOR_MANUAL_REPLICAS}
33
VENDOR_MANUAL_SUBDOMAIN_PREFIX=${VENDOR_MANUAL_SUBDOMAIN_PREFIX}
44
VENDOR_MANUAL_PRODUCTS=${VENDOR_MANUAL_PRODUCTS}
55
VENDOR_MANUAL_PORT=${VENDOR_MANUAL_PORT}
6+
VENDOR_CHATBOT_IMAGE=${VENDOR_CHATBOT_IMAGE}
7+
VENDOR_CHATBOT_REPLICAS=${VENDOR_CHATBOT_REPLICAS}
8+
VENDOR_CHATBOT_SUBDOMAIN_PREFIX=${VENDOR_CHATBOT_SUBDOMAIN_PREFIX}
9+
VENDOR_CHATBOT_PRODUCTS=${VENDOR_CHATBOT_PRODUCTS}
10+
VENDOR_CHATBOT_PORT=${VENDOR_CHATBOT_PORT}
611
PUBLIC_NETWORK=${PUBLIC_NETWORK}
12+
OTEL_EXPORTER_OTLP_ENDPOINT=${TRACING_OPENTELEMETRY_COLLECTOR_ENDPOINT}:${TRACING_OPENTELEMETRY_COLLECTOR_PORT}

0 commit comments

Comments
 (0)