mirror of
https://github.com/k8snetworkplumbingwg/whereabouts.git
synced 2025-06-03 06:42:26 +00:00
![dependabot[bot]](/assets/img/avatar_default.png)
Bumps openshift/release from golang-1.21 to golang-1.22. --- updated-dependencies: - dependency-name: openshift/release dependency-type: direct:production ... Signed-off-by: dependabot[bot] <support@github.com>
22 lines
1.1 KiB
Docker
22 lines
1.1 KiB
Docker
# This dockerfile is used for building for OpenShift
|
|
FROM registry.ci.openshift.org/openshift/release:golang-1.22 as builder
|
|
ADD . /go/src/github.com/k8snetworkplumbingwg/whereabouts
|
|
WORKDIR /go/src/github.com/k8snetworkplumbingwg/whereabouts
|
|
ENV CGO_ENABLED=1
|
|
ENV GO111MODULE=on
|
|
RUN go build -mod vendor -o bin/whereabouts cmd/whereabouts.go
|
|
RUN go build -mod vendor -o bin/ip-control-loop cmd/controlloop/controlloop.go
|
|
WORKDIR /
|
|
|
|
FROM openshift/origin-base
|
|
RUN mkdir -p /usr/src/whereabouts/images && \
|
|
mkdir -p /usr/src/whereabouts/bin
|
|
COPY --from=builder /go/src/github.com/k8snetworkplumbingwg/whereabouts/bin/whereabouts /usr/src/whereabouts/bin
|
|
COPY --from=builder /go/src/github.com/k8snetworkplumbingwg/whereabouts/bin/ip-control-loop /usr/src/whereabouts/bin
|
|
|
|
LABEL org.opencontainers.image.source https://github.com/k8snetworkplumbingwg/whereabouts
|
|
LABEL io.k8s.display-name="Whereabouts CNI" \
|
|
io.k8s.description="This is a component of OpenShift Container Platform and provides a cluster-wide IPAM CNI plugin." \
|
|
io.openshift.tags="openshift" \
|
|
maintainer="CTO Networking <nfvpe-container@redhat.com>"
|