-
Notifications
You must be signed in to change notification settings - Fork 5
/
Makefile
31 lines (23 loc) · 1.21 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# Copyright Amazon.com, Inc. and its affiliates. All Rights Reserved.
# SPDX-License-Identifier: MIT
#
# Licensed under the MIT License. See the LICENSE accompanying this file
# for the specific language governing permissions and limitations under
# the License.
.PHONY: build setup use clean-local clean export-local
export-local: build
docker buildx build --load --file AmazonLinux2.Dockerfile --tag public.ecr.aws/aws-se/nlb-sidecar-for-ecs:local .
docker buildx build --load --file Alpine.Dockerfile --tag public.ecr.aws/aws-se/nlb-sidecar-for-ecs:local-alpine .
build: use
docker buildx build --pull --platform linux/amd64,linux/arm64 --file AmazonLinux2.Dockerfile --tag public.ecr.aws/aws-se/nlb-sidecar-for-ecs:local .
docker buildx build --pull --platform linux/amd64,linux/arm64 --file Alpine.Dockerfile --tag public.ecr.aws/aws-se/nlb-sidecar-for-ecs:local-alpine .
setup:
docker buildx create --name multi-arch
use:
docker buildx use multi-arch
clean-local:
docker rmi public.ecr.aws/aws-se/nlb-sidecar-for-ecs:local public.ecr.aws/aws-se/nlb-sidecar-for-ecs:local-alpine
clean: clean-local
docker rmi public.ecr.aws/aws-se/nlb-sidecar-for-ecs:latest || true
docker image prune -f
docker buildx prune