mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-28 05:57:25 +00:00
Merge pull request #97982 from hasheddan/conformance-platforms
Fix non-amd64 conformance image builds
This commit is contained in:
commit
9ca86c2404
@ -12,7 +12,7 @@
|
|||||||
# See the License for the specific language governing permissions and
|
# See the License for the specific language governing permissions and
|
||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
|
|
||||||
FROM BASEIMAGE
|
FROM --platform=linux/ARCH BASEIMAGE
|
||||||
|
|
||||||
COPY ginkgo /usr/local/bin/
|
COPY ginkgo /usr/local/bin/
|
||||||
COPY e2e.test /usr/local/bin/
|
COPY e2e.test /usr/local/bin/
|
||||||
|
@ -31,7 +31,7 @@ E2E_GO_RUNNER_BIN?=$(shell test -f $(LOCAL_OUTPUT_PATH)/go-runner && echo $(LOCA
|
|||||||
|
|
||||||
CLUSTER_DIR?=$(shell pwd)/../../../cluster/
|
CLUSTER_DIR?=$(shell pwd)/../../../cluster/
|
||||||
|
|
||||||
BASEIMAGE=debian:stretch-slim
|
BASEIMAGE=debian:stable-slim
|
||||||
TEMP_DIR:=$(shell mktemp -d -t conformanceXXXXXX)
|
TEMP_DIR:=$(shell mktemp -d -t conformanceXXXXXX)
|
||||||
|
|
||||||
all: build
|
all: build
|
||||||
@ -54,7 +54,7 @@ endif
|
|||||||
chmod a+rx ${TEMP_DIR}/e2e.test
|
chmod a+rx ${TEMP_DIR}/e2e.test
|
||||||
chmod a+rx ${TEMP_DIR}/gorunner
|
chmod a+rx ${TEMP_DIR}/gorunner
|
||||||
|
|
||||||
cd ${TEMP_DIR} && sed -i.back "s|BASEIMAGE|${BASEIMAGE}|g" Dockerfile
|
cd ${TEMP_DIR} && sed -i.back "s|ARCH|${ARCH}|g; s|BASEIMAGE|${BASEIMAGE}|g" Dockerfile
|
||||||
|
|
||||||
docker build --pull -t ${REGISTRY}/conformance-${ARCH}:${VERSION} ${TEMP_DIR}
|
docker build --pull -t ${REGISTRY}/conformance-${ARCH}:${VERSION} ${TEMP_DIR}
|
||||||
rm -rf "${TEMP_DIR}"
|
rm -rf "${TEMP_DIR}"
|
||||||
|
Loading…
Reference in New Issue
Block a user