Skip to content

Commit

Permalink
fixing bug and adding prometheus slurm exporter
Browse files Browse the repository at this point in the history
  • Loading branch information
kincl committed Oct 30, 2023
1 parent aadc1a3 commit 9fb81cd
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/build-images.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,5 @@ jobs:
- name: Build image - login
run: |
docker build slurm/images/login --tag ghcr.io/${{ github.repository }}:login-latest
docker build slurm/images/login --tag ghcr.io/${{ github.repository }}/login:latest
docker push ghcr.io/${{ github.repository }}/login:latest
11 changes: 11 additions & 0 deletions slurm/images/slurm/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,14 @@ RUN curl -LO https://download.schedmd.com/slurm/slurm-${SLURM_VERSION}.tar.bz2 &
make && \
make install

FROM docker.io/golang:1.21 as build-exporter

WORKDIR /usr/src/app

RUN git clone https://github.com/vpenso/prometheus-slurm-exporter.git && \
cd prometheus-slurm-exporter && \
make

FROM scratch as tmp

# libjwt
Expand All @@ -39,6 +47,9 @@ COPY --from=build /usr/bin/s* /usr/bin/
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

FROM ghcr.io/naps-product-sa/openshift-batch/munge:latest

COPY --from=tmp / /
Expand Down

0 comments on commit 9fb81cd

Please sign in to comment.