Skip to content

Commit

Permalink
images/gcb-docker-gcloud: add buildx entrypoint script
Browse files Browse the repository at this point in the history
  • Loading branch information
LorbusChris committed Jun 17, 2021
1 parent cac4917 commit d4156da
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
1 change: 1 addition & 0 deletions images/gcb-docker-gcloud/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ RUN cp /qemu-bin/qemu-* /usr/bin/ && \
rm -rf /qemu-bin
COPY --from=qemu-image /qemu-binfmt-conf.sh /qemu-binfmt-conf.sh
COPY --from=qemu-image /register /register
ADD ./buildx-entrypoint.sh /buildx-entrypoint

RUN apk add qemu

Expand Down
20 changes: 20 additions & 0 deletions images/gcb-docker-gcloud/buildx-entrypoint.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
#!/bin/bash
# Copyright 2021 The Kubernetes Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

set -euo pipefail

/register --reset -p yes
/root/.docker/cli-plugins/docker-buildx create --use
/root/.docker/cli-plugins/docker-buildx "$@"

0 comments on commit d4156da

Please sign in to comment.