Skip to content
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

local Docker build error #42

Closed
peterstadler opened this issue May 19, 2023 · 2 comments
Closed

local Docker build error #42

peterstadler opened this issue May 19, 2023 · 2 comments
Assignees

Comments

@peterstadler
Copy link
Member

Building the Docker image locally fails for me with the current error message:

 => ERROR [5/8] COPY log4j.xml artifact/teigarage.wa[r] /tmp/                                                                                                                                      0.0s 
------                                                                                                                                                                                                  
 > [5/8] COPY log4j.xml artifact/teigarage.wa[r] /tmp/:                                                                                                                                                 
------                                                                                                                                                                                                  
Dockerfile:60
--------------------
  58 |     # these war-files are zipped so we need to unzip them twice
  59 |     #conditional copy in docker needs a strange hack
  60 | >>> COPY log4j.xml artifact/teigarage.wa[r] /tmp/
  61 |     
  62 |     RUN if [ "$BUILDTYPE" = "local" ] ; then \
--------------------
ERROR: failed to solve: lstat /var/lib/docker/tmp/buildkit-mount2342262845/artifact: no such file or directory

I'm wondering whether

COPY log4j.xml artifact/teigarage.wa[r] /tmp/

is actually needed (anymore)?

@anneferger anneferger self-assigned this May 22, 2023
anneferger added a commit that referenced this issue May 22, 2023
@anneferger
Copy link
Contributor

Yes, the docker behavior on conditional copy seems to have changed, I updated the Dockerfile accordingly and my local build doesn't throw the error message anymore

anneferger added a commit to Edirom/MEIGarage that referenced this issue May 22, 2023
@peterstadler
Copy link
Member Author

works for me as well, thanks a lot!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants