Today (2022.04.21) creation of Docker images broke

I have Dockerfile:

FROM azul/zulu-openjdk:17.0.2-17.32.13-jre

# Configure the JAVA_OPTIONS, you can add -XshowSettings:vm to also display the heap size.
ENV JAVA_OPTIONS="-Dquarkus.http.host=0.0.0.0 -Djava.util.logging.manager=org.jboss.logmanager.LogManager -Dfile.encoding=UTF-8 -Djava.security.egd=file:/dev/./urandom -Duser.timezone=Europe/Chisinau"
ENV TZ="Europe/Chisinau"

RUN useradd --uid 1000 --no-log-init --system quarkus

# We make four distinct layers so if there are application changes the library layers can be re-used
COPY --chown=1000 ./quarkus-app/lib/ /app/lib/
COPY --chown=1000 ./quarkus-app/*.jar /app/
COPY --chown=1000 ./quarkus-app/app/ /app/app/
COPY --chown=1000 ./quarkus-app/quarkus/ /app/quarkus/

EXPOSE 8443
USER 1000

ENTRYPOINT ["java", "-jar", "/app/quarkus-run.jar"]

and today, starting from lunch, when generating an image, I began to receive an error:

Running: [/bin/sh -c useradd --uid 1000 --no-log-init --system quarkus]
error building image: error building stage: failed to execute command: starting command: fork/exec /bin/sh: exec format error
0
3 comments

Hello!

Thank you for reaching out to us!

Could you please provide a bit more details about your case by filing a support request https://jb.gg/space-support:

  1. Are you using the customPlatform property in the docker DSL?
  2. Please share the job definition or at least the part of the DSL that configures the docker build

Margarita Kolotilova
JetBrains
http://www.jetbrains.com
The Drive to Develop

0

Hello!

Thanks for help!

I recently created ticket in YouTrack with details:

https://youtrack.jetbrains.com/issue/SPACE-17148/creation-of-Docker-images-broke

 

Tail from job log (build quarkus app with gradle):

Quarkus augmentation completed in 9294ms
:quarkusBuild (Thread[included builds,5,main]) completed. Took 18.3 secs.
producer locations for task group 0 (Thread[included builds,5,main]) started.
producer locations for task group 0 (Thread[included builds,5,main]) completed. Took 0.0 secs.
BUILD SUCCESSFUL in 2m 44s
5 actionable tasks: 5 executed
Some of the file system contents retained in the virtual file system are on file systems that Gradle doesn't support watching. The relevant state was discarded to ensure changes to these locations are properly detected. You can override this by explicitly enabling file system watching.
Before script started
Before build script finished successfully
[36mINFO[0m[0000] Retrieving image manifest azul/zulu-openjdk:17.0.2-17.32.13-jre
[36mINFO[0m[0000] Retrieving image azul/zulu-openjdk:17.0.2-17.32.13-jre from registry mirror mirror.gcr.io
[33mWARN[0m[0000] Failed to retrieve image azul/zulu-openjdk:17.0.2-17.32.13-jre from registry mirror mirror.gcr.io: GET https://mirror.gcr.io/v2/azul/zulu-openjdk/manifests/17.0.2-17.32.13-jre: MANIFEST_UNKNOWN: Failed to fetch "17.0.2-17.32.13-jre" from request "/v2/azul/zulu-openjdk/manifests/17.0.2-17.32.13-jre".. Will try with the next mirror, or fallback to the default registry.
[36mINFO[0m[0000] Retrieving image azul/zulu-openjdk:17.0.2-17.32.13-jre from registry index.docker.io
[36mINFO[0m[0001] Built cross stage deps: map[]
[36mINFO[0m[0001] Retrieving image manifest azul/zulu-openjdk:17.0.2-17.32.13-jre
[36mINFO[0m[0001] Returning cached image manifest
[36mINFO[0m[0001] Executing 0 build triggers
[36mINFO[0m[0001] Unpacking rootfs as cmd RUN useradd --uid 1000 --no-log-init --system quarkus requires it.
[36mINFO[0m[0010] ENV JAVA_OPTIONS="-Dquarkus.http.host=0.0.0.0 -Djava.util.logging.manager=org.jboss.logmanager.LogManager -Dfile.encoding=UTF-8 -Djava.security.egd=file:/dev/./urandom -Duser.timezone=Europe/Chisinau"
[36mINFO[0m[0010] ENV TZ="Europe/Chisinau"
[36mINFO[0m[0010] RUN useradd --uid 1000 --no-log-init --system quarkus
[36mINFO[0m[0010] Taking snapshot of full filesystem...
[36mINFO[0m[0012] cmd: /bin/sh
[36mINFO[0m[0012] args: [-c useradd --uid 1000 --no-log-init --system quarkus]
[36mINFO[0m[0012] Running: [/bin/sh -c useradd --uid 1000 --no-log-init --system quarkus]
error building image: error building stage: failed to execute command: starting command: fork/exec /bin/sh: exec format error
0

That's great! Thank you.

We'll be in the YT ticket with more questions/details soon.

Margarita Kolotilova
JetBrains
http://www.jetbrains.com
The Drive to Develop

0

Please sign in to leave a comment.