confluentinc / confluentinc/common

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

Open
#457 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
17
Forks
243
Avg merge
1d 21h
Merged PRs (30d)
38

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

```sh
$ 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

```sh
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
```

Contributor guide

No contributing guide indexed for this repository

Research direction

Start in the base directory and reproduce the reported Maven command on an M1 system. Inspect the Docker build step invoking microdnf and the full error output to identify which command returns code 1; done means the tagged 7.1.1 base image builds successfully on M1.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker, java
Domain
build-system, devops
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.