k8s.io/kubernetes@v1.29.3/test/images/Makefile (about) 1 # Copyright 2017 The Kubernetes Authors. 2 # 3 # Licensed under the Apache License, Version 2.0 (the "License"); 4 # you may not use this file except in compliance with the License. 5 # You may obtain a copy of the License at 6 # 7 # http://www.apache.org/licenses/LICENSE-2.0 8 # 9 # Unless required by applicable law or agreed to in writing, software 10 # distributed under the License is distributed on an "AS IS" BASIS, 11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 # See the License for the specific language governing permissions and 13 # limitations under the License. 14 15 REGISTRY ?= registry.k8s.io/e2e-test-images 16 GOARM ?= 7 17 DOCKER_CERT_BASE_PATH ?= 18 QEMUVERSION=v5.1.0-2 19 GOLANG_VERSION=1.21.8 20 export 21 22 ifndef WHAT 23 $(error WHAT is a required variable, ex: make all WHAT=net) 24 endif 25 26 # Build code. 27 # 28 # Args: 29 # WHAT: Directory names to build. 30 # 31 # Example: 32 # make all WHAT=httpd 33 all: all-container 34 35 all-container: 36 ./image-util.sh build $(WHAT) "docker" 37 38 all-push: 39 bash -x ./image-util.sh build $(WHAT) "registry" 40 bash -x ./image-util.sh push $(WHAT) 41 42 all-build-and-push: 43 ./image-util.sh build_and_push ${WHAT} 44 45 .PHONY: all all-build-and-push all-push all-container