File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1515all : build
1616
1717PROJ =gcr.io/k8s-cri-containerd
18- VERSION =1 .0
18+ VERSION =2 .0
1919IMAGE =$(PROJ ) /volume-copy-up:$(VERSION )
20+ PLATFORMS? =linux/amd64,linux/arm64
21+
22+ configure-docker :
23+ gcloud auth configure-docker
2024
2125build :
22- docker build -t $(IMAGE ) .
26+ docker buildx build \
27+ $(OUTPUT ) \
28+ --platform=${PLATFORMS} \
29+ --tag $(IMAGE ) .
2330
24- push :
25- gcloud docker -- push $( IMAGE )
31+ push : OUTPUT=--push
32+ push : configure- docker build
2633
27- .PHONY : build push
34+ .PHONY : configure-docker build push
Original file line number Diff line number Diff line change 1212# See the License for the specific language governing permissions and
1313# limitations under the License.
1414
15- FROM busybox
15+ FROM ubuntu
1616RUN mkdir -p /test_dir && \
1717 chown -R nobody:nogroup /test_dir
1818VOLUME /test_dir
Original file line number Diff line number Diff line change 1515all : build
1616
1717PROJ =gcr.io/k8s-cri-containerd
18- VERSION =1 .0
18+ VERSION =2 .0
1919IMAGE =$(PROJ ) /volume-ownership:$(VERSION )
20+ PLATFORMS? =linux/amd64,linux/arm64
21+
22+ configure-docker :
23+ gcloud auth configure-docker
2024
2125build :
22- docker build -t $(IMAGE ) .
26+ docker buildx build \
27+ $(OUTPUT ) \
28+ --platform=${PLATFORMS} \
29+ --tag $(IMAGE ) .
2330
24- push :
25- gcloud docker -- push $( IMAGE )
31+ push : OUTPUT=--push
32+ push : configure- docker build
2633
27- .PHONY : build push
34+ .PHONY : configure-docker build push
You can’t perform that action at this time.
0 commit comments