From 940c737b707b49a23935943e9347db6fa8e5e260 Mon Sep 17 00:00:00 2001 From: Boris Glimcher <36732377+glimchb@users.noreply.github.com> Date: Thu, 6 Jun 2024 12:53:02 -0400 Subject: [PATCH] do not merge yet: trying original sztpd server Signed-off-by: Boris Glimcher <36732377+glimchb@users.noreply.github.com> --- docker-compose.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/docker-compose.yml b/docker-compose.yml index cc0492a..68ecaf6 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -146,6 +146,32 @@ services: networks: - opi + sztpd: + image: docker.io/opiproject/sztpd:0.0.15 + environment: + SZTPD_INIT_PORT: 5080 + SZTPD_INIT_MODE: 1 + SZTPD_ACCEPT_CONTRACT: "Yes" + SZTPD_INIT_ADDR: 0.0.0.0 + networks: + - opi + healthcheck: + test: ["CMD-SHELL", "curl --fail -H Accept:application/yang-data+json http://127.0.0.1:$$SZTPD_INIT_PORT/.well-known/host-meta || exit 1"] + interval: 6s + retries: 5 + start_period: 20s + timeout: 10s + + sztpd-test: + image: docker.io/curlimages/curl:8.5.0 + depends_on: + sztpd: + condition: service_healthy + networks: + - opi + command: ["--fail", "-i", "--user", "my-admin@example.com:my-secret", "-H", "Accept:application/yang-data+json", "http://sztpd:5080/restconf/ds/ietf-datastores:running"] + + jaeger: image: jaegertracing/all-in-one:1.53.0 ports: