-
Notifications
You must be signed in to change notification settings - Fork 2.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ERROR: Service 'kafka' failed to build: #565
Comments
Looks like this issue is there is no support for TLS1.2. If you add |
Step 11/14 : RUN apk add --no-cache bash curl jq docker && chmod a+x /tmp/.sh && mv /tmp/start-kafka.sh /tmp/broker-list.sh /tmp/create-topics.sh /tmp/versions.sh /usr/bin && sync && /tmp/download-kafka.sh && tar xfz /tmp/kafka_${SCALA_VERSION}-${KAFKA_VERSION}.tgz -C /opt && rm /tmp/kafka_${SCALA_VERSION}-${KAFKA_VERSION}.tgz && ln -s /opt/kafka_${SCALA_VERSION}-${KAFKA_VERSION} ${KAFKA_HOME} && rm /tmp/ && wget --no-check-certificate https://github.com/sgerrand/alpine-pkg-glibc/releases/download/${GLIBC_VERSION}/glibc-${GLIBC_VERSION}.apk && apk add --no-cache --allow-untrusted glibc-${GLIBC_VERSION}.apk && rm glibc-${GLIBC_VERSION}.apk |
I think it is the issue with download-kafka.sh as below: #!/bin/sh -e shellcheck disable=SC1091source "/usr/bin/versions.sh" FILENAME="kafka_${SCALA_VERSION}-${KAFKA_VERSION}.tgz" url=$(curl --stderr /dev/null "https://www.apache.org/dyn/closer.cgi?path=/kafka/${KAFKA_VERSION}/${FILENAME}&as_json=1" | jq -r '"(.preferred)(.path_info)"') Test to see if the suggested mirror has this version, currently pre 2.1.1 versionsdo not appear to be actively mirrored. This may also be useful if closer.cgi is down.if [[ ! echo "Downloading Kafka from $url" |
Do you need to build it? |
I am encountering the same issue building kafka using the latest
Workaround: replace docker-compose.yml as follows to pull an older binary docker image rather than build, as follows:
|
Again, why do you need to build? And you can use latest tag, no need to use older versions |
We are building from docker file as we are not able to successfully deploy the already build image in other infrastructure such as openshift, AWS etc
Sent from Yahoo Mail for iPhone
On Monday, January 27, 2020, 10:31 PM, Jordan Moore <[email protected]> wrote:
Again, why do you need to build?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
And what's the error when you do deploy to those environments with existing images? |
Regarding openshift, see #403 Or just use Strimzi / AMQ Streams |
For production, the preferred security policy is to stay as close to the official linux (e.g. alpine) base images, add-on services from the base image installed via OS and official download site binaries from Apache Kafka. The build provides substantially more transparency and security verification, than a prebaked image. It also provides a mechanism to extend and customize Kafka. Once the build is completed, the ingesting docker compase.yml may very well end up using the binary docker image after successfully running the build. |
I think it was always giving issue around zookeeper connect in various images from dockerhub
Sent from Yahoo Mail for iPhone
On Monday, January 27, 2020, 10:52 PM, David Gecawich <[email protected]> wrote:
For production, the preferred security policy is to stay as close to the official linux (e.g. alpine) base images, add-on services from the base image installed via OS and official download site binaries from Apache Kafka. The build provide the necessary transparency and security verification.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
That's exactly what the Dockerfile here does... Re-downloading the (now missing) Kafka binaries from the Apache archives don't make the build more secure. If you were to change the base image, then I'd accept your argument.
Not sure what you would extend that isn't already provided. Plus,
Sure, thats just typical usage of Docker Compose. |
You'll need to be more specific about that. Sounds like you might have networking issues, which are not a problem with this container image. |
Does this image have both Kafka and zoo keeper ? It may not be a network issue as I am deploying this within my project space.
Let me send the exact message tomorrow from office
Sent from Yahoo Mail for iPhone
On Monday, January 27, 2020, 11:22 PM, Jordan Moore <[email protected]> wrote:
I think it was always giving issue around zookeeper connect
You'll need to be more specific about that. Sounds like you might have networking issues, which are not a problem with this container image.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
Again regarding Openshift, plenty of external resources on doing just that (which actually do not use this image) |
I read the comment, yes. Sorry, what about it?
The ultimate reason you're getting build errors is because Apache servers depend on mirrors to host older binaries. They're not all available from the main Apache download site |
@Cricket007 Thank you for the response, which clarified the cause of the issue and workaround/soluition to change SCALA_VERSION and KAFKA_VERSION to a version that is available on the download mirror and re-try. +1 for that response. |
|
ERROR: missing mandatory config: KAFKA_ZOOKEEPER_CONNECT after deploying the kafka image while zookeeper image deployment shows as | --> Scaling zookeeper-wurstmeister-1 to 1 As the openshift methods require admin level access and minishift is not something we prefer, hence try deploying the images . I havent tried re-buiilding from dockerfile with the latest changes, i will update you as soon as i complete. |
I never mentioned using minishift. The link only shows it to show the application deployment lifecycles.
Sounds like you have not set the correct environment variables onto the container from your k8s YAML spec? |
Also relevant - https://strimzi.io/quickstarts/okd/ |
|
I am deploying the complete image from dockerhub, do i need K8s Yaml spec ? . Also i dont have admin access at cluster level and has access only at namespace / project space level as a developer to try https://strimzi.io/quickstarts/okd/ |
let me try this - https://github.com/engapa/kafka-k8s-openshift/tree/master/openshift |
I am also experiencing an issue when trying to run I used @dgecawich recommendation and it started just fine. Although, I would like to use the |
Remove Problem should be solved. Again, I'm finding it unlikely y'all truly need to (re)build the image |
Will give that a go. Thank you. |
Dockerfile add |
@costa92 Thanks but please explain your use case for rebuilding the container |
Whenever I try to deploy the image in Openshift in my org , my account is getting locked . I am guessing it could be due to in build configurations . Anyway I have requested for my own storage which I will connect to my Openshift Instance in my org and will let you know how it goes !
Sent from Yahoo Mail for iPhone
On Thursday, January 30, 2020, 9:49 AM, Chris <[email protected]> wrote:
Will give that a go. Thank you.
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
@Cricket007 docker image system basic extended source |
@costa92 sorry, not sure I understand. Can you not do |
It looks like we need cluster level access to deploy this image wherein i have only access at the namespace level. hence I am requesting my OCP administrator to deploy the Red hat AMQ in openshift rather than working on opensource images. |
Seems like a good idea. Or Strimzi |
Yes,I think Red hat AMQ is based on Strimzi
Sent from Yahoo Mail for iPhone
On Monday, May 4, 2020, 6:01 PM, Jordan Moore <[email protected]> wrote:
deploy the Red hat AMQ in openshift rather than working on opensource images
Seems like a good idea. Or Strimzi
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
Step 11/14 : RUN apk add --no-cache bash curl jq docker && chmod a+x /tmp/.sh && mv /tmp/start-kafka.sh /tmp/broker-list.sh /tmp/create-topics.sh /tmp/versions.sh /usr/bin && sync && /tmp/download-kafka.sh && tar xfz /tmp/kafka_${SCALA_VERSION}-${KAFKA_VERSION}.tgz -C /opt && rm /tmp/kafka_${SCALA_VERSION}-${KAFKA_VERSION}.tgz && ln -s /opt/kafka_${SCALA_VERSION}-${KAFKA_VERSION} ${KAFKA_HOME} && rm /tmp/ && wget https://github.com/sgerrand/alpine-pkg-glibc/releases/download/${GLIBC_VERSION}/glibc-${GLIBC_VERSION}.apk && apk add --no-cache --allow-untrusted glibc-${GLIBC_VERSION}.apk && rm glibc-${GLIBC_VERSION}.apk
---> Running in b715c5d84399
fetch http://dl-cdn.alpinelinux.org/alpine/v3.9/main/x86_64/APKINDEX.tar.gz
fetch http://dl-cdn.alpinelinux.org/alpine/v3.9/community/x86_64/APKINDEX.tar.gz
(1/21) Installing ncurses-terminfo-base (6.1_p20190105-r0)
(2/21) Installing ncurses-terminfo (6.1_p20190105-r0)
(3/21) Installing ncurses-libs (6.1_p20190105-r0)
(4/21) Installing readline (7.0.003-r1)
(5/21) Installing bash (4.4.19-r1)
Executing bash-4.4.19-r1.post-install
(6/21) Installing nghttp2-libs (1.35.1-r1)
(7/21) Installing libssh2 (1.9.0-r1)
(8/21) Installing libcurl (7.64.0-r3)
(9/21) Installing curl (7.64.0-r3)
(10/21) Installing libseccomp (2.3.3-r1)
(11/21) Installing runc (1.0.0_rc8-r0)
(12/21) Installing containerd (1.2.7-r0)
(13/21) Installing libmnl (1.0.4-r0)
(14/21) Installing jansson (2.11-r0)
(15/21) Installing libnftnl-libs (1.1.1-r0)
(16/21) Installing iptables (1.6.2-r1)
(17/21) Installing tini-static (0.18.0-r0)
(18/21) Installing device-mapper-libs (2.02.182-r0)
(19/21) Installing docker (18.09.8-r0)
Executing docker-18.09.8-r0.pre-install
(20/21) Installing oniguruma (6.9.4-r0)
(21/21) Installing jq (1.6-r0)
Executing busybox-1.29.3-r10.trigger
OK: 349 MiB in 74 packages
/bin/sh: illegal option -
ERROR: Service 'kafka' failed to build: The command '/bin/sh -c apk add --no-cache bash curl jq docker && chmod a+x /tmp/.sh && mv /tmp/start-kafka.sh /tmp/broker-list.sh /tmp/create-topics.sh /tmp/versions.sh /usr/bin && sync && /tmp/download-kafka.sh && tar xfz /tmp/kafka_${SCALA_VERSION}-${KAFKA_VERSION}.tgz -C /opt && rm /tmp/kafka_${SCALA_VERSION}-${KAFKA_VERSION}.tgz && ln -s /opt/kafka_${SCALA_VERSION}-${KAFKA_VERSION} ${KAFKA_HOME} && rm /tmp/ && wget https://github.com/sgerrand/alpine-pkg-glibc/releases/download/${GLIBC_VERSION}/glibc-${GLIBC_VERSION}.apk && apk add --no-cache --allow-untrusted glibc-${GLIBC_VERSION}.apk && rm glibc-${GLIBC_VERSION}.apk' returned a non-zero code: 2
The text was updated successfully, but these errors were encountered: