oc-monitord
This commit is contained in:
parent
907880bfd6
commit
b4d57a8f2f
@ -1,5 +1,7 @@
|
||||
FROM golang:alpine AS deps
|
||||
|
||||
ARG MONITORD_IMAGE
|
||||
|
||||
WORKDIR /app
|
||||
COPY go.mod go.sum ./
|
||||
RUN sed -i '/replace/d' go.mod
|
||||
@ -19,7 +21,7 @@ COPY . .
|
||||
RUN go build
|
||||
|
||||
#----------------------------------------------------------------------------------------------
|
||||
FROM oc-monitord:latest AS monitord
|
||||
FROM ${MONITORD_IMAGE:-oc-monitord}:latest AS monitord
|
||||
|
||||
FROM scratch
|
||||
|
||||
|
2
Makefile
2
Makefile
@ -16,7 +16,7 @@ clean:
|
||||
rm -rf oc-schedulerd
|
||||
|
||||
docker:
|
||||
DOCKER_BUILDKIT=1 docker build -t oc/oc-schedulerd:0.0.1 -f Dockerfile .
|
||||
DOCKER_BUILDKIT=1 docker build -t oc/oc-schedulerd:0.0.1 -f Dockerfile . --build-arg MONITORD_IMAGE=oc/oc-monitord
|
||||
docker tag oc/oc-schedulerd:0.0.1 oc/oc-schedulerd:latest
|
||||
|
||||
publish-kind:
|
||||
|
Loading…
Reference in New Issue
Block a user