diff --git a/slurm/images/slurm/Dockerfile b/slurm/images/slurm/Dockerfile index 9c0c147..79890d9 100644 --- a/slurm/images/slurm/Dockerfile +++ b/slurm/images/slurm/Dockerfile @@ -26,10 +26,7 @@ RUN curl -LO https://download.schedmd.com/slurm/slurm-${SLURM_VERSION}.tar.bz2 & FROM docker.io/golang:1.21 as build-exporter -WORKDIR /usr/src/app - -RUN git clone https://github.com/vpenso/prometheus-slurm-exporter.git /usr/src/app && \ - make bin/prometheus-slurm-exporter +RUN go install github.com/rivosinc/prometheus-slurm-exporter@v1.0.1 FROM scratch as tmp @@ -47,7 +44,7 @@ COPY --from=build /usr/sbin/slurm* /usr/sbin/ COPY --from=build /usr/share/man/ /usr/share/man/ #prometheus exporter -COPY --from=build-exporter /usr/src/app/bin/prometheus-slurm-exporter /usr/bin/prometheus-slurm-exporter +COPY --from=build-exporter /go/bin/prometheus-slurm-exporter /usr/bin/prometheus-slurm-exporter FROM ghcr.io/naps-product-sa/openshift-batch/munge:latest diff --git a/slurm/manifests/service.yaml b/slurm/manifests/service.yaml index a07f911..156414b 100644 --- a/slurm/manifests/service.yaml +++ b/slurm/manifests/service.yaml @@ -8,7 +8,7 @@ spec: ports: - port: 6817 name: slurmctld - - port: 8080 + - port: 9092 name: scrape selector: app: slurm