Repository navigation
Docker Build Fails While Downloading Apache Hop via wget (Exit Code 1) #5003
Unanswered
its-dikshit
asked this question in
Q&A
Replies: 3 comments 3 replies
|
Hi there, I have no experience with Railway you could try to do following changes. The official download URL is https://www.apache.org/dyn/closer.cgi?filename=hop/2.12.0/apache-hop-client-2.12.0.zip&action=download, which will redirect to https://dlcdn.apache.org/hop/2.12.0/apache-hop-client-2.12.0.zip Docker also suggests using ADD instead of wget inside the container when downloading files. Hope this helps. |
1 reply
|
your command still refers to |
1 reply
|
You can add a debug option for shell script: RUN set -x; apt-get...other_command..." |
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Hello Apache Hop Community! 👋
I hope you're all doing well. I am currently trying to deploy Apache Hop on a server using Railway.com, but I am facing an issue while building my Docker image. The build fails at the wget command with the following error:
ERROR: failed to solve: process "/bin/sh -c apt-get update && apt-get install -y wget unzip
&& wget https://downloads.apache.org/hop/${HOP_VERSION}/apache-hop-client-${HOP_VERSION}.zip
&& unzip apache-hop-client-${HOP_VERSION}.zip -d /opt/
&& mv /opt/apache-hop-client-${HOP_VERSION} /opt/hop
&& rm apache-hop-client-${HOP_VERSION}.zip" did not complete successfully: exit code: 1
Steps to Reproduce:
FROM ubuntu:latest
ENV HOP_VERSION=2.5.0
RUN apt-get update && apt-get install -y wget unzip
&& wget https://downloads.apache.org/hop/${HOP_VERSION}/apache-hop-client-${HOP_VERSION}.zip
&& unzip apache-hop-client-${HOP_VERSION}.zip -d /opt/
&& mv /opt/apache-hop-client-${HOP_VERSION} /opt/hop
&& rm apache-hop-client-${HOP_VERSION}.zip
Build the Docker image:
docker build -t apache-hop .
Observe the failure in logs.
What I Have Tried:
Possible Issues & Questions:
Screenshots & Logs:
Expected Behavior:
The wget command should download the Apache Hop zip file, and the image should be built successfully.
Any insights or suggestions would be greatly appreciated!
Thanks in advance for your help. 🙏
All reactions