@@ -84,9 +84,9 @@ build-on-redhat:
84
84
.PHONY : build-on-debian-dev
85
85
build-on-debian-dev :
86
86
@$(call func_echo_status, "$@ -> [ Start ]")
87
- cp ./utils/check_standalone_config .sh debian-dev/check_standalone_config.sh
87
+ cp ./utils/* .sh debian-dev/
88
88
$(ENV_DOCKER ) build -t $(ENV_APISIX_IMAGE_TAG_NAME ) -debian-dev -f ./debian-dev/Dockerfile debian-dev
89
- rm -f debian-dev/check_standalone_config .sh
89
+ rm -f debian-dev/* .sh
90
90
@$(call func_echo_success_status, "$@ -> [ Done ]")
91
91
92
92
# ## build-on-debian-local-dev : Build apache/apisix:xx-debian-dev image
@@ -103,39 +103,62 @@ else
103
103
endif
104
104
@$(call func_echo_success_status, "$@ -> [ Done ]")
105
105
106
+
107
+ # ## build-on-ubuntu : Build apache/apisix:xx-ubuntu image
108
+ .PHONY : build-on-ubuntu
109
+ build-on-ubuntu :
110
+ @$(call func_echo_status, "$@ -> [ Start ]")
111
+ cp ./utils/* .sh ubuntu/
112
+ $(ENV_DOCKER ) build -t $(ENV_APISIX_IMAGE_TAG_NAME ) -ubuntu -f ./ubuntu/Dockerfile ubuntu
113
+ rm -f ubuntu/* .sh
114
+ @$(call func_echo_success_status, "$@ -> [ Done ]")
115
+
106
116
# ## build-on-debian : Build apache/apisix:xx-debian image
107
117
.PHONY : build-on-debian
108
118
build-on-debian :
109
119
@$(call func_echo_status, "$@ -> [ Start ]")
110
- cp ./utils/check_standalone_config .sh debian/check_standalone_config.sh
120
+ cp ./utils/* .sh debian/
111
121
$(ENV_DOCKER ) build -t $(ENV_APISIX_IMAGE_TAG_NAME ) -debian -f ./debian/Dockerfile debian
112
- rm -f debian/check_standalone_config .sh
122
+ rm -f debian/* .sh
113
123
@$(call func_echo_success_status, "$@ -> [ Done ]")
114
124
115
125
116
126
# ## push-on-alpine : Push apache/apisix:dev image
117
127
.PHONY : push-multiarch-dev-on-debian
118
128
push-multiarch-dev-on-debian :
119
129
@$(call func_echo_status, "$@ -> [ Start ]")
120
- cp ./utils/check_standalone_config .sh debian-dev/check_standalone_config.sh
130
+ cp ./utils/* .sh debian-dev/
121
131
$(ENV_DOCKER ) buildx build --network=host --push \
122
132
-t $(IMAGE_NAME ) :dev \
123
133
--platform linux/amd64,linux/arm64 \
124
134
-f ./debian-dev/Dockerfile debian-dev
125
- rm -f debian-dev/check_standalone_config.sh
135
+ rm -f debian-dev/* .sh
136
+ @$(call func_echo_success_status, "$@ -> [ Done ]")
137
+
138
+
139
+ # ## push-multiarch-on-ubuntu : Push apache/apisix:xx-ubuntu image
140
+ .PHONY : push-multiarch-on-ubuntu
141
+ push-multiarch-on-ubuntu :
142
+ @$(call func_echo_status, "$@ -> [ Start ]")
143
+ cp ./utils/* .sh ubuntu/
144
+ $(ENV_DOCKER ) buildx build --network=host --push \
145
+ -t $(ENV_APISIX_IMAGE_TAG_NAME ) -ubuntu \
146
+ --platform linux/amd64,linux/arm64 \
147
+ -f ./ubuntu/Dockerfile ubuntu
148
+ rm -f ubuntu/* .sh
126
149
@$(call func_echo_success_status, "$@ -> [ Done ]")
127
150
128
151
129
152
# ## push-multiarch-on-debian : Push apache/apisix:xx-debian image
130
153
.PHONY : push-multiarch-on-debian
131
154
push-multiarch-on-debian :
132
155
@$(call func_echo_status, "$@ -> [ Start ]")
133
- cp ./utils/check_standalone_config .sh debian/check_standalone_config.sh
156
+ cp ./utils/* .sh debian/
134
157
$(ENV_DOCKER ) buildx build --network=host --push \
135
158
-t $(ENV_APISIX_IMAGE_TAG_NAME ) -debian \
136
159
--platform linux/amd64,linux/arm64 \
137
160
-f ./debian/Dockerfile debian
138
- rm -f debian/check_standalone_config .sh
161
+ rm -f debian/* .sh
139
162
@$(call func_echo_success_status, "$@ -> [ Done ]")
140
163
141
164
@@ -159,12 +182,12 @@ push-multiarch-on-redhat:
159
182
push-multiarch-on-latest :
160
183
@$(call func_echo_status, "$@ -> [ Start ]")
161
184
@if [ " $( shell echo " $( APISIX_VERSION) $( MAX_APISIX_VERSION) " | tr " " " \n" | sort -rV | head -n 1) " == " $( APISIX_VERSION) " ]; then \
162
- cp ./utils/check_standalone_config .sh debian/check_standalone_config.sh ; \
185
+ cp ./utils/* .sh ubuntu/ ; \
163
186
$(ENV_DOCKER ) buildx build --network=host --push \
164
187
-t $(IMAGE_NAME ) :latest \
165
188
--platform linux/amd64,linux/arm64 \
166
- -f ./debian /Dockerfile debian ; \
167
- rm -f debian/check_standalone_config .sh; \
189
+ -f ./ubuntu /Dockerfile ubuntu ; \
190
+ rm -f ubuntu/ * .sh; \
168
191
fi
169
192
@$(call func_echo_success_status, "$@ -> [ Done ]")
170
193
0 commit comments