From c68969a61a8b37443fd75d5805d2495687e22a51 Mon Sep 17 00:00:00 2001 From: Dimitri Koshkin Date: Wed, 24 Jan 2024 16:22:16 -0800 Subject: [PATCH] build: remove base image targets --- images/driver-base/Dockerfile | 20 ---------------- images/driver-base/Makefile | 44 ----------------------------------- 2 files changed, 64 deletions(-) delete mode 100644 images/driver-base/Dockerfile delete mode 100644 images/driver-base/Makefile diff --git a/images/driver-base/Dockerfile b/images/driver-base/Dockerfile deleted file mode 100644 index 8b98805af4..0000000000 --- a/images/driver-base/Dockerfile +++ /dev/null @@ -1,20 +0,0 @@ -# Copyright 2019 The Kubernetes 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. - -FROM photon:4.0 -ARG GIT_COMMIT -LABEL git_commit=$GIT_COMMIT -LABEL "maintainers"="Divyen Patel , Sandeep Pissay Srinivasa Rao , Xing Yang " - -RUN tdnf -y upgrade && tdnf clean all diff --git a/images/driver-base/Makefile b/images/driver-base/Makefile deleted file mode 100644 index 1e27cf243a..0000000000 --- a/images/driver-base/Makefile +++ /dev/null @@ -1,44 +0,0 @@ -# Copyright 2019 The Kubernetes 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. - -all: build - -include ../../hack/make/login-to-image-registry.mk - -IMAGE_NAME ?= $(REGISTRY)/extra/csi-driver-base -IMAGE_NAME_WITH_TAG ?= $(IMAGE_NAME):$(shell git log -1 --format=%h) - -build: - docker build -t $(IMAGE_NAME_WITH_TAG) --build-arg GIT_COMMIT=$(shell git log -1 --format=%H) . - docker tag $(IMAGE_NAME_WITH_TAG) $(IMAGE_NAME):latest -.PHONY: build - -push: login-to-image-registry - docker push $(IMAGE_NAME_WITH_TAG) - docker push $(IMAGE_NAME):latest -.PHONY: push - -.PHONY: clean -DOCKER_RMI_FLAGS := --no-prune -clean: - docker rmi $(DOCKER_RMI_FLAGS) $(IMAGE_NAME_WITH_TAG) $(IMAGE_NAME):latest 2>/dev/null || true - -.PHONY: clobber -clobber: DOCKER_RMI_FLAGS := -clobber: clean - docker rmi $$(docker images -qf reference=$(IMAGE_NAME):*) 2>/dev/null || true - -.PHONY: print -print: - @echo $(IMAGE_NAME_WITH_TAG) \ No newline at end of file