Use Qemu to Build S390x images

Tips to build Qemu S390x images

  1. Connect to a build machine

ssh root@ip

  1. Clone the operator

“git clone“`

  1. Install qemu and buildah and podman-docker

yum install -y qemu-kvm buildah podman-docker

/usr/bin/docker run --rm --privileged tonistiigi/binfmt:latest --install all
Emulate Docker CLI using podman. Create /etc/containers/nodocker to quiet msg.
Trying to pull
Getting image source signatures
Copying blob e9c608ddc3cb done  
Copying blob 8d4d64c318a5 done  
Copying config 354472a378 done  
Writing manifest to image destination
Storing signatures
installing: arm64 OK
installing: arm OK
installing: ppc64le OK
installing: mips64 OK
installing: riscv64 OK
installing: mips64le OK
installing: s390x OK
  "supported": [
  "emulators": [

/usr/bin/buildah bud --arch s390x -f $(pwd)/build/Dockerfile --format docker --tls-verify=true -t op:v0.1.1-linux-s390x $(pwd)/






Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.