Solace Prometheus exporter build docker image failure

Options
Can you please reopen this case as we are doing a configuration of solace prometheus exporter and its failing while building the docker image?
Please is the highlighted error.
Although we are able to pull the image manually.

Sending build context to Docker daemon 2.846MB
Step 1/19 : FROM artifactory.devtools.syd.c1.macquarie.com:9996/golang:1.20.12 AS builder
---> 3be5872cbe30
Step 2/19 : LABEL builder=true
---> Using cache
---> 3b469f28eb67
Step 3/19 : ENV CGO_ENABLED=0
---> Using cache
---> d024e4231e9c
Step 4/19 : ENV GOOS=linux
---> Using cache
---> 7b85d7580b4f
Step 5/19 : ENV GOARCH=amd64
---> Using cache
---> ec2aedcc3003
Step 6/19 : WORKDIR /go/src/app
---> Using cache
---> 2f8b8c8a117f
Step 7/19 : COPY . .
---> Using cache
---> 7c1fa414be24
Step 8/19 : RUN go get -d -v ./... && go install -v ./... && go test -short ./... && go build -a -ldflags '-s -w -extldflags "-static"' -o /bin/solace_prometheus_exporter
---> Running in 62593aaee214
go: github.com/alecthomas/kingpin/v2@v2.4.0: Get "https://proxy.golang.org/github.com/alecthomas/kingpin/v2/@v/v2.4.0.mod": dial tcp 172.217.24.49:443: i/o timeout
The command '/bin/sh -c go get -d -v ./... && go install -v ./... && go test -short ./... && go build -a -ldflags '-s -w -extldflags "-static"' -o /bin/solace_prometheus_exporter' returned a non-zero code: 1
[ec2-user@10.161.156.223 2024-02-09_09:58:18 UTC solace-prometheus-exporter-master]$



wget is successful while getting an image via a link showing under the error message.



Please understand the urgency of an issue and assist as earliest as possible.

Also below content of docker file will be helpful to you.

[ec2-user@10.161.156.244 2024-02-12_09:00:37 UTC solace-prometheus-exporter-master]$ cat Dockerfile
FROM artifactory.devtools.syd.c1.macquarie.com:9996/golang:1.20.12 AS builder
LABEL builder=true

ENV CGO_ENABLED=0
ENV GOOS=linux
ENV GOARCH=amd64

WORKDIR /go/src/app
COPY . .

RUN go get -d -v ./... \
&& go install -v ./... \
&& go test -short ./... \
&& go build \
-a \
-ldflags '-s -w -extldflags "-static"' \
-o /bin/solace_prometheus_exporter



FROM scratch
LABEL maintainer="Charu Sharma <charu.sharma@macquarie.com>"

EXPOSE 9628
ENTRYPOINT [ "/solace_prometheus_exporter", "--config-file=/etc/solace/solace_prometheus_exporter.ini" ]
CMD [ ]

COPY docker/solace_prometheus_exporter.ini /etc/solace/solace_prometheus_exporter.ini

COPY --from=builder /etc/passwd /etc/passwd

COPY --from=builder /bin/solace_prometheus_exporter /solace_prometheus_exporter

Comments