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

Add .cog to a .dockerignore produces hard to debug states #1961

Open
8W9aG opened this issue Sep 19, 2024 · 0 comments · May be fixed by #1962
Open

Add .cog to a .dockerignore produces hard to debug states #1961

8W9aG opened this issue Sep 19, 2024 · 0 comments · May be fixed by #1962

Comments

@8W9aG
Copy link
Contributor

8W9aG commented Sep 19, 2024

If you add .cog to a .dockerignore it produces issues like the following:

------
 > [stage-0 3/7] COPY .cog/tmp/build20240919160513.8228582876843814/requirements.txt /tmp/requirements.txt:
------
Dockerfile:4
--------------------
   2 |     FROM r8.im/cog-base:cuda11.8-python3.11
   3 |     RUN --mount=type=cache,target=/var/cache/apt,sharing=locked apt-get update -qq && apt-get install -qqy  && rm -rf /var/lib/apt/lists/*
   4 | >>> COPY .cog/tmp/build20240919160513.8228582876843814/requirements.txt /tmp/requirements.txt
   5 |     ENV CFLAGS="-O3 -funroll-loops -fno-strict-aliasing -flto -S"
   6 |     RUN pip install --no-cache-dir -r /tmp/requirements.txt
--------------------
ERROR: failed to solve: failed to compute cache key: failed to calculate checksum of ref 50e2db01-7591-4a90-a5ab-e68b1ae19a0e::qc781cqwiy4yk3g558ya3mubm: "/.cog/tmp/build20240919160513.8228582876843814/requirements.txt": not found

This is quite difficult to debug, we should either warn the user that adding .cog produces undesireable effects or filter this out of the .dockerignore file produced by the user.

@zsxkib

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

Successfully merging a pull request may close this issue.

1 participant