Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM golang:1.24-alpine3.21 AS build
FROM golang:1.25-alpine3.23 AS build

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These version bumps are intentional, otherwise it wouldn't build local image, since version in go.mod is newer

COPY . /go/src/nats-surveyor
WORKDIR /go/src/nats-surveyor
ENV GO111MODULE=on
Expand All @@ -8,7 +8,7 @@ RUN go build
FROM alpine:latest AS osdeps
RUN apk add --no-cache ca-certificates

FROM alpine:3.21
FROM alpine:3.23
COPY --from=build /go/src/nats-surveyor/nats-surveyor /nats-surveyor
COPY --from=osdeps /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/

Expand Down
4 changes: 3 additions & 1 deletion docker-compose/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ services:
- NATS_SURVEYOR_PASSWORD
- NATS_SURVEYOR_SERVERS
- NATS_SURVEYOR_SERVER_COUNT
command: --count ${NATS_SURVEYOR_SERVER_COUNT} -s "${NATS_SURVEYOR_SERVERS}" --accounts --observe /observations --jetstream /jetstream --jsz all
command: --count ${NATS_SURVEYOR_SERVER_COUNT} -s "${NATS_SURVEYOR_SERVERS}" --accounts --accounts-detailed --observe /observations --jetstream /jetstream --jsz all
networks:
- monitor-net
labels:
Expand All @@ -33,6 +33,8 @@ services:
image: prom/prometheus:${PROMETHEUS_DOCKER_TAG}
container_name: prometheus
restart: "no"
ports:
- "9090:9090"

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is to debug raw values in prometheus

volumes:
- ./prometheus/:/etc/prometheus/
- $PROMETHEUS_STORAGE:/usr/local/share/prometheus
Expand Down
Loading