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: