From b226bf62b28af365bc94cc0004ffd6266980d578 Mon Sep 17 00:00:00 2001 From: Shikhar Soni Date: Thu, 30 May 2024 02:30:08 +0530 Subject: [PATCH] Remove unified image Signed-off-by: Shikhar Soni --- build/images/Dockerfile.build.coverage | 52 -------------------------- 1 file changed, 52 deletions(-) delete mode 100644 build/images/Dockerfile.build.coverage diff --git a/build/images/Dockerfile.build.coverage b/build/images/Dockerfile.build.coverage deleted file mode 100644 index 19b0123da12..00000000000 --- a/build/images/Dockerfile.build.coverage +++ /dev/null @@ -1,52 +0,0 @@ -# Copyright 2022 Antrea Authors -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -ARG GO_VERSION -ARG BUILD_TAG -FROM golang:${GO_VERSION} as antrea-build - -WORKDIR /antrea - -COPY go.mod /antrea/go.mod - -RUN go mod download - -COPY . /antrea - -# Build antctl first in order to share an extra layer with -# build/images/Dockerfile.build.agent.coverage and build/images/Dockerfile.build.controller.coverage. -RUN make antctl-linux antctl-instr-binary && mv bin/antctl-linux bin/antctl - -# Then build antrea-agent and antrea-cni, in order to share an extra layer with -# build/images/Dockerfile.build.agent.coverage. -RUN make antrea-agent antrea-cni antrea-agent-instr-binary - -RUN make antrea-controller antrea-controller-instr-binary - -FROM antrea/base-ubuntu:${BUILD_TAG} - -LABEL maintainer="Antrea " -LABEL description="The Docker image to deploy the Antrea CNI with code coverage measurement enabled (used for testing)." - -USER root - -COPY build/images/scripts/* /usr/local/bin/ -COPY --from=antrea-build /antrea/bin/* /usr/local/bin/ -COPY --from=antrea-build /antrea/test/e2e/utils/run_cov_binary.sh / - -# This environment variable will persist when running the container, but can also be overwritten if needed -ENV GOCOVERDIR=/tmp/coverage -RUN mkdir -p $GOCOVERDIR - -ENTRYPOINT [ "/run_cov_binary.sh" ]