Skip to content

Mac M1 docker error building base with Spotify microdef returned a non-zero code: 1 #457

Description

I am trying to build some personal M1 images for myself, and I performed a maven build inside of the base directory with tag 7.1.1 (bd600b37) using the following command

$ mvn clean package -e -Pdocker -DskipTests -Ddocker.registry=dhinojosa/ -DCONFLUENT_VERSION=7.1.1

I receive during that build a failure with the following stack trace

Caused by: com.spotify.docker.client.exceptions.DockerException: The command '/bin/sh -c microdnf
 --nodocs install yum    
&& rpm --import https://www.azul.com/files/0xB1998361219BD9C9.txt     
&& yum --nodocs -y install https://cdn.azul.com/zulu/bin/zulu-repo-1.0.0-1.noarch.rpm     
&& yum --nodocs install -y --setopt=install_weak_deps=False         
git  "openssl${OPENSSL_VERSION}"  "wget${WGET_VERSION}"    
"nmap-ncat${NETCAT_VERSION}"         
"python36${PYTHON36_VERSION}"         
"tar${TAR_VERSION}"  "procps-ng${PROCPS_VERSION}"       
"krb5-workstation${KRB5_WORKSTATION_VERSION}"   "iputils${IPUTILS_VERSION}"         
"hostname${HOSTNAME_VERSION}"         
"zulu11-ca-jdk-headless${ZULU_OPENJDK_VERSION}" 
"zulu11-ca-jre-headless${ZULU_OPENJDK_VERSION}"    
 && alternatives --set python /usr/bin/python3     
&& python3 -m pip install --upgrade "pip${PYTHON_PIP_VERSION}" 
"setuptools${PYTHON_SETUPTOOLS_VERSION}"     
&& python3 -m pip install --prefer-binary --prefix=/usr/local --upgrade "${PYTHON_CONFLUENT_DOCKER_UTILS_INSTALL_SPEC}"    
&& yum remove -y git     
&& yum --nodocs update -y tzdata libgcc libstdc++ cyrus-sasl-lib     
&& yum clean all     
&& rm -rf /tmp/*     && mkdir -p /etc/confluent/docker /usr/logs     
&& useradd --no-log-init --create-home --shell /bin/bash appuser    
&& chown appuser:appuser -R /etc/confluent/ /usr/logs' returned a non-zero code: 1

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions