2024-11-13 13:18:01 +00:00
|
|
|
FROM golang:1.22.4
|
|
|
|
|
|
|
|
RUN apt-get update
|
|
|
|
RUN apt-get -y install git
|
|
|
|
|
|
|
|
RUN git clone https://github.com/ClusterCockpit/cc-metric-store.git /cc-metric-store
|
|
|
|
RUN ls
|
|
|
|
RUN cd /cc-metric-store && go build ./cmd/cc-metric-store
|
|
|
|
|
|
|
|
# Reactivate when latest commit is available
|
|
|
|
#RUN go get -d -v github.com/ClusterCockpit/cc-metric-store
|
|
|
|
#RUN go install -v github.com/ClusterCockpit/cc-metric-store@latest
|
|
|
|
|
|
|
|
RUN mv /cc-metric-store/cc-metric-store /go/bin
|
|
|
|
COPY config.json /go/bin
|
|
|
|
|
|
|
|
VOLUME /data
|
|
|
|
|
|
|
|
WORKDIR /go/bin
|
2024-11-13 16:57:26 +00:00
|
|
|
RUN mkdir -p ./var/checkpoints
|
2024-11-13 13:18:01 +00:00
|
|
|
CMD ["./cc-metric-store"]
|