2024-07-03 10:21:17 +02:00
|
|
|
FROM golang:alpine AS builder
|
|
|
|
LABEL maintainer="IRT PFN"
|
|
|
|
ENV DOCKER_ENVIRONMENT=true
|
|
|
|
WORKDIR /app
|
|
|
|
|
|
|
|
COPY . .
|
|
|
|
|
|
|
|
RUN go build .
|
|
|
|
|
2024-08-19 11:42:26 +02:00
|
|
|
FROM oc-monitord:latest AS monitord
|
|
|
|
|
|
|
|
FROM argoproj/argocd:latest
|
|
|
|
|
|
|
|
ENV MONITORD_PATH = "./oc-monitord"
|
|
|
|
|
2024-07-03 10:21:17 +02:00
|
|
|
WORKDIR /app
|
|
|
|
|
2024-08-20 09:23:05 +02:00
|
|
|
COPY conf/docker_schedulerd.json /etc/oc/schedulerd.json
|
|
|
|
|
2024-08-19 11:42:26 +02:00
|
|
|
COPY --from=monitord /app/oc-monitord .
|
|
|
|
COPY --from=builder /app/oc-schedulerd .
|
|
|
|
COPY conf/docker_schedulerd.json /etc/oc/schedulerd.json
|
2024-07-03 10:21:17 +02:00
|
|
|
|
2024-08-19 11:42:26 +02:00
|
|
|
ENTRYPOINT ["/app/oc-schedulerd"]
|
2024-07-03 10:21:17 +02:00
|
|
|
|