-
Notifications
You must be signed in to change notification settings - Fork 362
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove unified image #6182
Remove unified image #6182
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -335,11 +335,17 @@ mockgen: | |
|
||
### Docker images ### | ||
|
||
# This target is for development only. It assumes that "make bin" has been run previously and will | ||
# copy the local binaries to the Docker image, instead of building the binaries inside the image as | ||
# part of the Docker build. | ||
|
||
.PHONY: ubuntu | ||
ubuntu: | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. A nit, Can we remove ubuntu, and we can modify the CONTRIBUTING.md file to make use of There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. These targets do different things. I know that some folks prefer to build the binaries externally and copy them inside the Docker container (building this way is less portable but may be faster). There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. okay got it. |
||
@echo "===> Building antrea/antrea-ubuntu Docker image <===" | ||
docker build -t antrea/antrea-ubuntu:$(DOCKER_IMG_VERSION) -f build/images/Dockerfile.ubuntu $(DOCKER_BUILD_ARGS) . | ||
docker tag antrea/antrea-ubuntu:$(DOCKER_IMG_VERSION) antrea/antrea-ubuntu | ||
@echo "===> Building antrea/antrea-agent-ubuntu and antrea/antrea-controller-ubuntu development Docker images <===" | ||
docker build -t antrea/antrea-agent-ubuntu:$(DOCKER_IMG_VERSION) -f build/images/Dockerfile.agent.ubuntu $(DOCKER_BUILD_ARGS) . | ||
docker tag antrea/antrea-agent-ubuntu:$(DOCKER_IMG_VERSION) antrea/antrea-agent-ubuntu | ||
docker build -t antrea/antrea-controller-ubuntu:$(DOCKER_IMG_VERSION) -f build/images/Dockerfile.controller.ubuntu $(DOCKER_BUILD_ARGS) . | ||
docker tag antrea/antrea-controller-ubuntu:$(DOCKER_IMG_VERSION) antrea/antrea-controller-ubuntu | ||
|
||
.PHONY: build-controller-ubuntu | ||
build-controller-ubuntu: | ||
|
@@ -353,19 +359,14 @@ build-agent-ubuntu: | |
docker build -t antrea/antrea-agent-ubuntu:$(DOCKER_IMG_VERSION) -f build/images/Dockerfile.build.agent.ubuntu $(DOCKER_BUILD_ARGS) . | ||
docker tag antrea/antrea-agent-ubuntu:$(DOCKER_IMG_VERSION) antrea/antrea-agent-ubuntu | ||
|
||
# Build bins in a golang container, and build the antrea-ubuntu Docker image. | ||
# These 2 targets are here for "backwards-compatibility". They will build the agent and controller | ||
# images for the requested distribution. | ||
|
||
.PHONY: build-ubuntu | ||
build-ubuntu: | ||
@echo "===> Building Antrea bins and antrea/antrea-ubuntu Docker image <===" | ||
docker build -t antrea/antrea-ubuntu:$(DOCKER_IMG_VERSION) -f build/images/Dockerfile.build.ubuntu $(DOCKER_BUILD_ARGS) . | ||
docker tag antrea/antrea-ubuntu:$(DOCKER_IMG_VERSION) antrea/antrea-ubuntu | ||
build-ubuntu: build-agent-ubuntu build-controller-ubuntu | ||
|
||
# Build bins in a golang container, and build the antrea-ubi Docker image. | ||
.PHONY: build-ubi | ||
build-ubi: | ||
@echo "===> Building Antrea bins and antrea/antrea-ubi Docker image <===" | ||
docker build -t antrea/antrea-ubi:$(DOCKER_IMG_VERSION) -f build/images/Dockerfile.build.ubi $(DOCKER_BUILD_ARGS) . | ||
docker tag antrea/antrea-ubi:$(DOCKER_IMG_VERSION) antrea/antrea-ubi | ||
build-ubi: build-agent-ubi build-controller-ubi | ||
|
||
.PHONY: build-agent-ubi | ||
build-agent-ubi: | ||
|
@@ -386,10 +387,7 @@ build-windows: | |
docker tag antrea/antrea-windows:$(DOCKER_IMG_VERSION) antrea/antrea-windows | ||
|
||
.PHONY: build-ubuntu-coverage | ||
build-ubuntu-coverage: | ||
@echo "===> Building Antrea bins and antrea/antrea-ubuntu-coverage Docker image <===" | ||
docker build -t antrea/antrea-ubuntu-coverage:$(DOCKER_IMG_VERSION) -f build/images/Dockerfile.build.coverage $(DOCKER_BUILD_ARGS) . | ||
docker tag antrea/antrea-ubuntu-coverage:$(DOCKER_IMG_VERSION) antrea/antrea-ubuntu-coverage | ||
build-ubuntu-coverage: build-controller-ubuntu-coverage build-agent-ubuntu-coverage | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think that we can remove this now, because it is called only during test from There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I have a comment to the Makefile explaining that I am keeping the targets for backwards compatibility. It's just an alias and someone / a script outside of the repo may be using the target directly? |
||
|
||
.PHONY: build-controller-ubuntu-coverage | ||
build-controller-ubuntu-coverage: | ||
|
This file was deleted.
This file was deleted.
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# Copyright 2024 Antrea Authors | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Just curious to know why is this file added, when we already have There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. See comment above There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. got it. |
||
# | ||
# 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. | ||
|
||
FROM ubuntu:22.04 | ||
|
||
LABEL maintainer="Antrea <projectantrea-dev@googlegroups.com>" | ||
LABEL description="The development Docker image to deploy the antrea-controller." | ||
|
||
USER root | ||
|
||
COPY bin/antrea-controller /usr/local/bin/ | ||
COPY bin/antctl /usr/local/bin/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we also removed the line here?
https://github.com/antrea-io/antrea/blob/main/ci/jenkins/mellanox/scripts/start_ci.sh#L114
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I will remove the line, but I think we should consider removing the script... as it is no longer maintained AFAIK
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The script is definitely broken too, it still uses the Harbor name for the Antrea docker images