You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@superset.apache.org by "Enol33 (via GitHub)" <gi...@apache.org> on 2024/01/29 09:48:20 UTC
[I] Error building image from dockerfile [superset]
Enol33 opened a new issue, #26843:
URL: https://github.com/apache/superset/issues/26843
### Bug description
Hello,
I have the repository cloned and I'm trying to build the image to have it in my own registry, but when I run the docker build command, I get:
` => ERROR [ 4/15] RUN curl --silent --show-error https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip -o /tmp/awscliv2.zip && curl --silent --show-error --location --output /tmp/amazon-ssm-a 22.9s
------
> [ 4/15] RUN curl --silent --show-error https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip -o /tmp/awscliv2.zip && curl --silent --show-error --location --output /tmp/amazon-ssm-agent.deb https://s3.us-east-1.amazonaws.com/amazon-ssm-us-east-1/latest/debian_amd64/amazon-ssm-agent.deb && unzip /tmp/awscliv2.zip && dpkg -i /tmp/amazon-ssm-agent.deb && ./aws/install && rm -rf /tmp/awscliv2.zip && set -ex && apt-get update && apt-get install -qq -y --no-install-recommends sudo make unzip curl jq && rm -rf /var/lib/apt/lists/* && usermod -aG sudo superset && echo "superset ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers:
22.84 /bin/sh: 1: unzip: not found
------
Dockerfile:9
--------------------
8 |
9 | >>> RUN curl --silent --show-error https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip -o /tmp/awscliv2.zip && \
10 | >>> curl --silent --show-error --location --output /tmp/amazon-ssm-agent.deb https://s3.us-east-1.amazonaws.com/amazon-ssm-us-east-1/latest/debian_amd64/amazon-ssm-agent.deb && \
11 | >>> unzip /tmp/awscliv2.zip && \
12 | >>> dpkg -i /tmp/amazon-ssm-agent.deb && \
13 | >>> ./aws/install && \
14 | >>> rm -rf /tmp/awscliv2.zip && \
15 | >>> set -ex \
16 | >>> && apt-get update \
17 | >>> && apt-get install -qq -y --no-install-recommends \
18 | >>> sudo \
19 | >>> make \
20 | >>> unzip \
21 | >>> curl \
22 | >>> jq \
23 | >>> && rm -rf /var/lib/apt/lists/* \
24 | >>> && usermod -aG sudo superset \
25 | >>> && echo "superset ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers
26 | # We install the Python interface for Redis
--------------------
ERROR: failed to solve: process "/bin/sh -c curl --silent --show-error https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip -o /tmp/awscliv2.zip && curl --silent --show-error --location --output /tmp/amazon-ssm-agent.deb https://s3.us-east-1.amazonaws.com/amazon-ssm-us-east-1/latest/debian_amd64/amazon-ssm-agent.deb && unzip /tmp/awscliv2.zip && dpkg -i /tmp/amazon-ssm-agent.deb && ./aws/install && rm -rf /tmp/awscliv2.zip && set -ex && apt-get update && apt-get install -qq -y --no-install-recommends sudo make unzip curl jq && rm -rf /var/lib/apt/lists/* && usermod -aG sudo superset && echo \"superset ALL=(ALL) NOPASSWD:ALL\" >> /etc/sudoers" did not complete successfully: exit code: 127
`
### How to reproduce the bug
1: Clone the repository
2: Run docker build to build the image from the dockerfile
### Screenshots/recordings
_No response_
### Superset version
master / latest-dev
### Python version
3.9
### Node version
16
### Browser
Chrome
### Additional context
_No response_
### Checklist
- [ ] I have searched Superset docs and Slack and didn't find a solution to my problem.
- [ ] I have searched the GitHub issue tracker and didn't find a similar bug report.
- [ ] I have checked Superset's logs for errors and if I found a relevant Python stacktrace, I included it here as text in the "additional context" section.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
Re: [I] Error building image from dockerfile [superset]
Posted by "Enol33 (via GitHub)" <gi...@apache.org>.
Enol33 commented on issue #26843:
URL: https://github.com/apache/superset/issues/26843#issuecomment-1914349857
I have added
```
apt update -y &&\
apt install -y zip &&\
```
To dockerfile and works fine
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
Re: [I] Error building image from dockerfile [superset]
Posted by "Enol33 (via GitHub)" <gi...@apache.org>.
Enol33 closed issue #26843: Error building image from dockerfile
URL: https://github.com/apache/superset/issues/26843
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org