OneCricketeer / apache-kafka-connect-docker

[KAFKA-9774] Un-official Docker Image for Apache Kafka Connect
https://issues.apache.org/jira/browse/KAFKA-9774
Apache License 2.0
34 stars 15 forks source link

Unable to build image with plugins #23

Closed OneCricketeer closed 1 year ago

OneCricketeer commented 1 year ago

Noticed that after adding multi-arch support, unable to build image from Dockerfile via Compose.

Seems related to https://github.com/moby/buildkit/pull/3447

$ docker compose build
[+] Building 0.8s (7/7) FINISHED                                                                                                          
 => [internal] load build definition from Dockerfile.schema-registry                                                                 0.0s
 => => transferring dockerfile: 773B                                                                                                 0.0s
 => [internal] load .dockerignore                                                                                                    0.0s
 => => transferring context: 156B                                                                                                    0.0s
 => [internal] load metadata for docker.io/cricketeerone/apache-kafka-connect:latest-confluent-hub                                   0.5s
 => [1/2] FROM docker.io/cricketeerone/apache-kafka-connect:latest-confluent-hub@sha256:f16a53ba2fcb53d28804b9653d650a0a34f4283910b  0.0s
 => => resolve docker.io/cricketeerone/apache-kafka-connect:latest-confluent-hub@sha256:f16a53ba2fcb53d28804b9653d650a0a34f4283910b  0.0s
 => CACHED [2/2] RUN confluent-hub install --no-prompt     --component-dir /app/libs --worker-configs /app/resources/connect-distri  0.0s
 => ERROR exporting to oci image format                                                                                              0.3s
 => => exporting layers                                                                                                              0.0s
 => => exporting manifest sha256:2f39a10288a0f64d3d74a6a759251c972023ba02a4e5f44461393d882dfa1d8d                                    0.0s
 => => exporting config sha256:7ce753f13ef1ecf61258004efdd0f08d35971ffdc56a3dc34ba8f2356d1bb370                                      0.0s
 => => sending tarball                                                                                                               0.3s
 => importing to docker                                                                                                              0.0s
------
 > exporting to oci image format:
------
failed to solve: failed to get reader: content digest sha256:5251bbbe8da77c098a0d39b97d4c42e0e99487c845ff3845db08c93347c3a437: not found
imeoer commented 1 year ago

Is it reproducible? Could you share the detail?

OneCricketeer commented 1 year ago

Seems to be, yes.

Using just docker build on this image - https://github.com/OneCricketeer/apache-kafka-connect-docker/blob/schema-registry/Dockerfile.schema-registry

I have updated the base image to use buildx for the first time, though, so it may be related to that, however, and therefore I need to do the same for all subsequent images? But that doesn't make sense to me since pulling from other multi-platform containers works fine...? E.g. eclipse-termium:11

OneCricketeer commented 1 year ago

Looks like error was a red herring. There was a separate issue with my build-arg.