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

Error when executing the docker-compose build command on windows #4588

Open
Simernope opened this issue Apr 9, 2024 · 1 comment
Open

Error when executing the docker-compose build command on windows #4588

Simernope opened this issue Apr 9, 2024 · 1 comment

Comments

@Simernope
Copy link
Contributor

I use git bash on windows to build a project. In dev mode, everything starts, but when executing docker-compose build, the command crashes with an error:

simeo@Simeon MINGW64 ~/WebstormProjects/condo (master)
$ docker-compose build
[+] Building 0.0s (0/0)  docker:default
[+] Building 9.1s (19/27)                                                                                                                                                                                            docker:default
 => [app internal] load build definition from Dockerfile                                                                                                                                                                       0.5s
 => => transferring dockerfile: 2.13kB                                                                                                                                                                                         0.0s
 => [app internal] load metadata for docker.io/library/buildpack-deps:buster                                                                                                                                                   1.7s
 => [app internal] load metadata for docker.io/library/node:16-buster-slim                                                                                                                                                     1.7s 
 => [app internal] load metadata for docker.io/library/python:3.8-slim-buster                                                                                                                                                  1.7s 
 => [app auth] library/buildpack-deps:pull token for registry-1.docker.io                                                                                                                                                      0.0s
 => [app auth] library/python:pull token for registry-1.docker.io                                                                                                                                                              0.0s
 => [app auth] library/node:pull token for registry-1.docker.io                                                                                                                                                                0.0s 
 => [app internal] load .dockerignore                                                                                                                                                                                          0.2s
 => => transferring context: 355B                                                                                                                                                                                              0.0s 
 => [app node 1/1] FROM docker.io/library/node:16-buster-slim@sha256:3ebf2875c188d22939c6ab080cfb1a4a6248cc86bae600ea8e2326aa03acdb8f                                                                                          0.0s
 => [app base 1/5] FROM docker.io/library/buildpack-deps:buster@sha256:d58af141d3f29e8adebbb0e8338a2eb6834c13db0122b7b2859d30fb072d6c94                                                                                        0.0s 
 => [app python 1/1] FROM docker.io/library/python:3.8-slim-buster@sha256:8799b0564103a9f36cfb8a8e1c562e11a9a6f2e3bb214e2adc23982b36a04511                                                                                     0.0s 
 => [app internal] load build context                                                                                                                                                                                          6.3s 
 => => transferring context: 532.62kB                                                                                                                                                                                          6.1s 
 => CACHED [app base 2/5] COPY --from=python /usr/local/ /usr/local/                                                                                                                                                           0.0s 
 => CACHED [app base 3/5] COPY --from=node /usr/local/ /usr/local/                                                                                                                                                             0.0s 
 => CACHED [app base 4/5] COPY --from=node /opt/ /opt/                                                                                                                                                                         0.0s 
 => CACHED [app base 5/5] RUN set -ex  && groupadd -r app --gid=999  && useradd --system --create-home --home /app --gid 999 --uid=999 --shell /bin/bash app  && rm -f /usr/local/bin/docker-entrypoint.sh  && python --versi  0.0s 
 => CACHED [app stage-5 1/2] WORKDIR /app                                                                                                                                                                                      0.1s 
 => CACHED [app installer 1/5] WORKDIR /app                                                                                                                                                                                    0.0s 
 => ERROR [app installer 2/5] COPY --chown=app:app ./out /app                                                                                                                                                                  0.0s 
------
 > [app installer 2/5] COPY --chown=app:app ./out /app:
------
failed to solve: failed to compute cache key: failed to calculate checksum of ref ca39f5c8-67d4-4e98-8559-c78d7732711f::ndnk8wt25vyttr4sg60td4n7c: "/out": not found

At what point is the out directory created and why is it not there?

@SavelevMatthew
Copy link
Member

SavelevMatthew commented Apr 12, 2024

out directory is used to store pruned repo containing only package.json and yarn.lock files, so we can use docker layer-caching to save time on yarn install step.

You can generate it by running:

sh bin/prune.sh

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

No branches or pull requests

2 participants