iic-jku/IIC-OSIC-TOOLS

Container build fails with 'podman/buildah'

Closed this issue · 1 comments

Describe the bug
buildah build fails with:
error resolving mountpoints for container "0bdf5cc5f4ace21d6868f64e9058d08398037cfab83836bb6d4678b55ee71894": invalid mount type "bind"
See GoogleContainerTools/kaniko#1568
This might actually be fixed in a new version of podman/buildah, but the one in Ubuntu 22.04 still has it..

To Reproduce
Steps to reproduce the behavior:
git clone https://github.com/iic-jku/IIC-OSIC-TOOLS
cd IIC-OSIC-TOOLS/_build

Expected behavior

  • build completes as it does on Docker -

Screenshots
buildah build
[1/38] STEP 1/4: FROM ubuntu:jammy AS base
[1/38] STEP 2/4: ARG CONTAINER_TAG=unknown
[1/38] STEP 3/4: ENV IIC_OSIC_TOOLS_VERSION=${CONTAINER_TAG} DEBIAN_FRONTEND=noninteractive TZ=Europe/Vienna LC_ALL=en_US.UTF-8 LANG=en_US.UTF-8 TOOLS=/foss/tools PDK_ROOT=/foss/pdks DESIGNS=/foss/designs EXAMPLES=/foss/examples
[1/38] STEP 4/4: RUN --mount=type=bind,source=images/base,target=/images/base bash /images/base/scripts/00_base_install.sh && bash /images/base/scripts/01_base_setup.sh && bash /images/base/scripts/30_install_boost.sh && bash /images/base/scripts/31_install_or-tools.sh && bash /images/base/scripts/70_install_from_pip.sh
error building at STEP "RUN --mount=type=bind,source=images/base,target=/images/base bash /images/base/scripts/00_base_install.sh && bash /images/base/scripts/01_base_setup.sh && bash /images/base/scripts/30_install_boost.sh && bash /images/base/scripts/31_install_or-tools.sh && bash /images/base/scripts/70_install_from_pip.sh": error resolving mountpoints for container "0bdf5cc5f4ace21d6868f64e9058d08398037cfab83836bb6d4678b55ee71894": invalid mount type "bind"
ERRO[0001] exit status 125

Environment:

  • Ubuntu 22.04, amd64

We have no experience with podman/buildah, unfortunately. We are using Docker on Linux/macOS to build the image, and for now, that is the only way we can support.