istio

Форк
0
/
istio-docker.mk 
69 строк · 2.1 Кб
1
## Copyright 2018 Istio 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
.PHONY: docker
16
.PHONY: docker.all
17
.PHONY: docker.save
18
.PHONY: docker.push
19

20
### Docker commands ###
21
# Below provides various commands to build/push docker images.
22
# These are all wrappers around ./tools/docker, the binary that controls docker builds.
23
# Builds can also be done through direct ./tools/docker invocations.
24
# When using these commands the flow is:
25
#  1) make target calls ./tools/docker
26
#  2) ./tools/docker calls `make build.docker.x` targets to compute the dependencies required
27
#  3) ./tools/docker triggers the actual docker commands required
28
# As a result, there are two layers of make involved.
29

30
docker: ## Build all docker images
31
	./tools/docker
32

33
docker.save: ## Build docker images and save to tar.gz
34
	./tools/docker --save
35

36
docker.push: ## Build all docker images and push to
37
	./tools/docker --push
38

39
# Legacy command aliases
40
docker.all: docker
41
	@:
42
dockerx.save: docker.save
43
	@:
44
dockerx.push: docker.push
45
	@:
46
dockerx.pushx: docker.push
47
	@:
48
dockerx: docker
49
	@:
50

51
# Support individual images like `dockerx.pilot`
52

53
# Docker commands defines some convenience targets
54
# Build individual docker image and push it. Ex: push.docker.pilot
55
push.docker.%:
56
	DOCKER_TARGETS=docker.$* ./tools/docker --push
57

58
# Build individual docker image and save it. Ex: tar.docker.pilot
59
tar.docker.%:
60
	DOCKER_TARGETS=docker.$* ./tools/docker --save
61

62
# Build individual docker image. Ex: docker.pilot
63
docker.%:
64
	DOCKER_TARGETS=docker.$* ./tools/docker
65

66
# Build individual docker image. Ex: dockerx.pilot
67
dockerx.docker.%:
68
	DOCKER_TARGETS=docker.$* ./tools/docker
69
### End docker commands ###
70

Использование cookies

Мы используем файлы cookie в соответствии с Политикой конфиденциальности и Политикой использования cookies.

Нажимая кнопку «Принимаю», Вы даете АО «СберТех» согласие на обработку Ваших персональных данных в целях совершенствования нашего веб-сайта и Сервиса GitVerse, а также повышения удобства их использования.

Запретить использование cookies Вы можете самостоятельно в настройках Вашего браузера.