Skip to content

Commit a842251

Browse files
committed
Revert to bash script
1 parent 95cbda3 commit a842251

File tree

5 files changed

+114
-514
lines changed

5 files changed

+114
-514
lines changed

framework/observability/compose/docker-compose.yaml

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -136,14 +136,10 @@ services:
136136
- '9304:9187'
137137
restart: unless-stopped
138138

139-
sd-merge:
140-
image: golang:1.24-alpine
139+
node_service_discovery:
140+
image: alpine:3.20
141141
working_dir: /app
142-
command: ["/bin/sh","-lc",
143-
"apk add --no-cache git ca-certificates && \
144-
/usr/local/go/bin/go build -trimpath -ldflags='-s -w' -o /usr/local/bin/sd-merge . && \
145-
exec /usr/local/bin/sd-merge"
146-
]
142+
command: [ "/bin/sh","-c","apk add --no-cache bash curl jq docker-cli && exec bash ./service_discovery.sh" ]
147143
volumes:
148144
- /var/run/docker.sock:/var/run/docker.sock:ro
149145
- sd-targets:/out
@@ -154,9 +150,7 @@ services:
154150
DISCOVERY_PORT: "6688"
155151
DISCOVERY_SCHEME: "http"
156152
OUT: "/out/merged.json"
157-
SLEEP: "30"
158-
REQUEST_TIMEOUT: "5"
159-
restart: unless-stopped
153+
SLEEP: "15"
160154

161155

162156

framework/observability/service_discovery/go.mod

Lines changed: 0 additions & 35 deletions
This file was deleted.

framework/observability/service_discovery/go.sum

Lines changed: 0 additions & 128 deletions
This file was deleted.

0 commit comments

Comments
 (0)