Skip to content

Build image does not work on Windows 10 - /tmp/download-kafka.sh: not found #146

@m-a-d-e

Description

@m-a-d-e

Hello,
When I run the build command on Windows 10, Docker 1.12.3, I get the following error:

Step 6 : RUN chmod a+x /tmp/download-kafka.sh && 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} /opt/kafka
---> Running in f32b8949e634
/bin/sh: /tmp/download-kafka.sh: not found
ERROR: Service 'kafka' failed to build: The command '/bin/sh -c chmod a+x /tmp/download-kafka.sh && 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} /opt/kafka' returned a non-zero code: 127

I tried to split the "chmod" and the execution of the script into 2 distinct commands but that did not fixed the problem.
I started from a clean situation (no images, no (ended) containers running.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions