@@ -26,72 +26,30 @@ help: ## Show help message
26
26
27
27
build-users : # # Builds and pushes the users service image
28
28
@echo " ${PROMPT_COLOR} Building users image'...${PROMPT_NC} "
29
- docker buildx build --platform linux/amd64 -t $(MS_IMAGE_REGISTRY ) :$(MS_USERS_SERVICE_NAME ) -amd64 --push --file build/$(MS_USERS_SERVICE_NAME ) .Dockerfile .
30
- docker buildx build --platform linux/arm64 -t $(MS_IMAGE_REGISTRY ) :$(MS_USERS_SERVICE_NAME ) -arm64 --push --file build/$(MS_USERS_SERVICE_NAME ) .Dockerfile .
29
+ docker buildx build --platform linux/amd64,linux/arm64 -t $(MS_IMAGE_REGISTRY ) :$(MS_USERS_SERVICE_NAME ) --push --file build/$(MS_USERS_SERVICE_NAME ) .Dockerfile .
31
30
32
31
build-cart : # # Builds and pushes the cart service image
33
32
@echo " ${PROMPT_COLOR} Building cart image'...${PROMPT_NC} "
34
- docker buildx build --platform linux/amd64 -t $(MS_IMAGE_REGISTRY ) :$(MS_CART_SERVICE_NAME ) -amd64 --push --file build/$(MS_CART_SERVICE_NAME ) .Dockerfile .
35
- docker buildx build --platform linux/arm64 -t $(MS_IMAGE_REGISTRY ) :$(MS_CART_SERVICE_NAME ) -arm64 --push --file build/$(MS_CART_SERVICE_NAME ) .Dockerfile .
33
+ docker buildx build --platform linux/amd64,linux/arm64 -t $(MS_IMAGE_REGISTRY ) :$(MS_CART_SERVICE_NAME ) --push --file build/$(MS_CART_SERVICE_NAME ) .Dockerfile .
36
34
37
35
build-checkout : # # Builds and pushes the checkout service image
38
36
@echo " ${PROMPT_COLOR} Building checkout image'...${PROMPT_NC} "
39
- docker buildx build --platform linux/amd64 -t $(MS_IMAGE_REGISTRY ) :$(MS_CHECKOUT_SERVICE_NAME ) -amd64 --push --file build/$(MS_CHECKOUT_SERVICE_NAME ) .Dockerfile .
40
- docker buildx build --platform linux/arm64 -t $(MS_IMAGE_REGISTRY ) :$(MS_CHECKOUT_SERVICE_NAME ) -arm64 --push --file build/$(MS_CHECKOUT_SERVICE_NAME ) .Dockerfile .
37
+ docker buildx build --platform linux/amd64,linux/arm64 -t $(MS_IMAGE_REGISTRY ) :$(MS_CHECKOUT_SERVICE_NAME ) --push --file build/$(MS_CHECKOUT_SERVICE_NAME ) .Dockerfile .
41
38
42
39
build-frontend : # # Builds and pushes the frontend service image
43
40
@echo " ${PROMPT_COLOR} Building frontend image'...${PROMPT_NC} "
44
- docker buildx build --platform linux/amd64 -t $(MS_IMAGE_REGISTRY ) :$(MS_FRONTEND_SERVICE_NAME ) -amd64 --push --file build/$(MS_FRONTEND_SERVICE_NAME ) .Dockerfile .
45
- docker buildx build --platform linux/arm64 -t $(MS_IMAGE_REGISTRY ) :$(MS_FRONTEND_SERVICE_NAME ) -arm64 --push --file build/$(MS_FRONTEND_SERVICE_NAME ) .Dockerfile .
41
+ docker buildx build --platform linux/amd64,linux/arm64 -t $(MS_IMAGE_REGISTRY ) :$(MS_FRONTEND_SERVICE_NAME ) --push --file build/$(MS_FRONTEND_SERVICE_NAME ) .Dockerfile .
46
42
47
43
build-newsletter : # # Builds and pushes the newsletter service image
48
44
@echo " ${PROMPT_COLOR} Building newsletter image'...${PROMPT_NC} "
49
- docker buildx build --platform linux/amd64 -t $(MS_IMAGE_REGISTRY ) :$(MS_NEWSLETTER_SERVICE_NAME ) -amd64 --push --file build/$(MS_NEWSLETTER_SERVICE_NAME ) .Dockerfile .
50
- docker buildx build --platform linux/arm64 -t $(MS_IMAGE_REGISTRY ) :$(MS_NEWSLETTER_SERVICE_NAME ) -arm64 --push --file build/$(MS_NEWSLETTER_SERVICE_NAME ) .Dockerfile .
45
+ docker buildx build --platform linux/amd64,linux/arm64 -t $(MS_IMAGE_REGISTRY ) :$(MS_NEWSLETTER_SERVICE_NAME ) --push --file build/$(MS_NEWSLETTER_SERVICE_NAME ) .Dockerfile .
51
46
52
47
build-products : # # Builds and pushes the products service image
53
48
@echo " ${PROMPT_COLOR} Building products image'...${PROMPT_NC} "
54
- docker buildx build --platform linux/amd64 -t $(MS_IMAGE_REGISTRY ) :$(MS_PRODUCTS_SERVICE_NAME ) -amd64 --push --file build/$(MS_PRODUCTS_SERVICE_NAME ) .Dockerfile .
55
- docker buildx build --platform linux/arm64 -t $(MS_IMAGE_REGISTRY ) :$(MS_PRODUCTS_SERVICE_NAME ) -arm64 --push --file build/$(MS_PRODUCTS_SERVICE_NAME ) .Dockerfile .
49
+ docker buildx build --platform linux/amd64,linux/arm64 -t $(MS_IMAGE_REGISTRY ) :$(MS_PRODUCTS_SERVICE_NAME ) --push --file build/$(MS_PRODUCTS_SERVICE_NAME ) .Dockerfile .
56
50
57
51
build-images : build-users build-cart build-checkout build-frontend build-newsletter build-products # # Build and push all images
58
52
59
- # Combine arch images
60
-
61
- tag-users : # # Tag the users service images
62
- docker buildx imagetools create -t $(MS_IMAGE_REGISTRY ) :$(MS_USERS_SERVICE_NAME ) \
63
- $(MS_IMAGE_REGISTRY ) :$(MS_USERS_SERVICE_NAME ) -amd64 \
64
- $(MS_IMAGE_REGISTRY ) :$(MS_USERS_SERVICE_NAME ) -arm64
65
-
66
- tag-cart : # # Tag the cart service images
67
- docker buildx imagetools create -t $(MS_IMAGE_REGISTRY ) :$(MS_CART_SERVICE_NAME ) \
68
- $(MS_IMAGE_REGISTRY ) :$(MS_CART_SERVICE_NAME ) -amd64 \
69
- $(MS_IMAGE_REGISTRY ) :$(MS_CART_SERVICE_NAME ) -arm64
70
-
71
- tag-checkout : # # Tag the checkout service images
72
- docker buildx imagetools create -t $(MS_IMAGE_REGISTRY ) :$(MS_CHECKOUT_SERVICE_NAME ) \
73
- $(MS_IMAGE_REGISTRY ) :$(MS_CHECKOUT_SERVICE_NAME ) -amd64 \
74
- $(MS_IMAGE_REGISTRY ) :$(MS_CHECKOUT_SERVICE_NAME ) -arm64
75
-
76
- tag-frontend : # # Tag the frontend service images
77
- docker buildx imagetools create -t $(MS_IMAGE_REGISTRY ) :$(MS_FRONTEND_SERVICE_NAME ) \
78
- $(MS_IMAGE_REGISTRY ) :$(MS_FRONTEND_SERVICE_NAME ) -amd64 \
79
- $(MS_IMAGE_REGISTRY ) :$(MS_FRONTEND_SERVICE_NAME ) -arm64
80
-
81
- tag-newsletter : # # Tag the newsletter service images
82
- docker buildx imagetools create -t $(MS_IMAGE_REGISTRY ) :$(MS_NEWSLETTER_SERVICE_NAME ) \
83
- $(MS_IMAGE_REGISTRY ) :$(MS_NEWSLETTER_SERVICE_NAME ) -amd64 \
84
- $(MS_IMAGE_REGISTRY ) :$(MS_NEWSLETTER_SERVICE_NAME ) -arm64
85
-
86
- tag-products : # # Tag the products service images
87
- docker buildx imagetools create -t $(MS_IMAGE_REGISTRY ) :$(MS_PRODUCTS_SERVICE_NAME ) \
88
- $(MS_IMAGE_REGISTRY ) :$(MS_PRODUCTS_SERVICE_NAME ) -amd64 \
89
- $(MS_IMAGE_REGISTRY ) :$(MS_PRODUCTS_SERVICE_NAME ) -arm64
90
-
91
- tag-images : tag-users tag-cart tag-checkout tag-frontend tag-newsletter tag-products # # Tag all images
92
-
93
- update-images : build-images tag-images # # Build and tag all images
94
-
95
53
install-otterside : # # Installs Otterside in the kubernetes cluster
96
54
helm --kubeconfig=$(KUBECONFIG_PATH ) dep up $(HELM_CHART_PATH ) ; \
97
55
helm --kubeconfig=$(KUBECONFIG_PATH ) upgrade --install otterside $(HELM_CHART_PATH ) -n $(OTTERSIDE_NAMESPACE ) --create-namespace
0 commit comments