-
Notifications
You must be signed in to change notification settings - Fork 87
Open
Labels
Description
What happened?
I expected that docker build would work successfully after mvn clean package
RUN curl -L "https://downloads.apache.org/kafka/3.6.2/kafka_2.12-3.6.2.tgz" -o kafka.tgz
results in 404

Steps To Reproduce
- git clone https://github.com/ibm-messaging/kafka-connect-mq-source
- cd kafka-connect-mq-source
- mvn clean package
- docker build -t kafkaconnect-with-mq-source:2.0.0 .
Environment
Anything else?
Looking at https://downloads.apache.org/kafka/ it seems the 3.6.2 is no longer avaible for downloading

Version
2.6.0 (Default)
Relevant log output
docker build -t kafkaconnect-with-mq-source:2.0.0 . ─╯
[+] Building 1.2s (12/18) docker:rancher-desktop
=> [internal] load build definition from Dockerfile 0.0s
=> => transferring dockerfile: 1.03kB 0.0s
=> WARN: FromAsCasing: 'as' and 'FROM' keywords' casing do not match (line 3) 0.0s
=> [internal] load metadata for docker.io/library/openjdk:11-jre-slim 1.0s
=> [internal] load metadata for docker.io/library/alpine:latest 0.5s
=> [internal] load .dockerignore 0.0s
=> => transferring context: 2B 0.0s
=> [builder 1/5] FROM docker.io/library/alpine:latest@sha256:4bcff63911fcb4448bd4fdacec207030997caf25e9bea4045fa6c8c44de311d1 0.0s
=> [internal] load build context 0.0s
=> => transferring context: 112B 0.0s
=> [stage-1 1/8] FROM docker.io/library/openjdk:11-jre-slim@sha256:93af7df2308c5141a751c4830e6b6c5717db102b3b31f012ea29d842dc4f2b02 0.0s
=> CACHED [stage-1 2/8] RUN addgroup --gid 5000 --system esgroup && adduser --uid 5000 --ingroup esgroup --system esuser 0.0s
=> CACHED [builder 2/5] RUN apk update 0.0s
=> CACHED [builder 3/5] RUN apk --no-cache add curl 0.0s
=> CACHED [builder 4/5] RUN curl -L "https://downloads.apache.org/kafka/3.6.2/kafka_2.12-3.6.2.tgz" -o kafka.tgz 0.0s
=> ERROR [builder 5/5] RUN mkdir /opt/kafka && tar -xf kafka.tgz -C /opt/kafka --strip-components=1 0.2s
------
> [builder 5/5] RUN mkdir /opt/kafka && tar -xf kafka.tgz -C /opt/kafka --strip-components=1:
0.143 tar: invalid tar magic
------
1 warning found (use docker --debug to expand):
- FromAsCasing: 'as' and 'FROM' keywords' casing do not match (line 3)
Dockerfile:9
--------------------
8 | RUN curl -L "https://downloads.apache.org/kafka/3.6.2/kafka_2.12-3.6.2.tgz" -o kafka.tgz
9 | >>> RUN mkdir /opt/kafka \
10 | >>> && tar -xf kafka.tgz -C /opt/kafka --strip-components=1
11 |
--------------------
ERROR: failed to build: failed to solve: process "/bin/sh -c mkdir /opt/kafka && tar -xf kafka.tgz -C /opt/kafka --strip-components=1" did not complete successfully: exit code: 1
Code of Conduct
- I agree to follow this project's Code of Conduct