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 tmp/cache to docker ignore #1790

Merged

Conversation

pgwillia
Copy link
Member

Context

to avoid Errno::EACCES: Permission denied @ rb_sysopen - /app/tmp/cache/bootsnap-load-path-cache.1.18857.tmp error don't copy in that cache!

Related to #1680

What's New

Ignore tmp/cache directory when building docker images.

to avoid `Errno::EACCES: Permission denied @ rb_sysopen - /app/tmp/cache/bootsnap-load-path-cache.1.18857.tmp` error don't copy in that cache!
@@ -3,6 +3,7 @@
*.md

tmp
Copy link
Contributor

@murny murny Jul 30, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't tmp here cover everything in tmp directory? including cache? 🤔

(of course except for us excluding tmp/pids/.keep below)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll try building this branch from docker hub to see if it has the same results I'm seeing locally. But I didn't have to remove volumes and everything else as before after using the image I built with just this change.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Confirmed the docker hub image has the same result.

@pgwillia
Copy link
Member Author

@murny we were talking about adding a user/group but it turns out that the problem was in the .dockerignore after all. The documentation suggests that the tmp should be recursive but it doesn't seem to be in practice.

$ docker -v
Docker version 19.03.12, build 48a66213fe
$ docker-compose -v
docker-compose version 1.26.2, build eefe0d31

Copy link
Contributor

@murny murny left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sounds good, thanks for explanation 👍

@pgwillia pgwillia merged commit 3ec4bbc into ualbertalib:integration_postmigration Jul 30, 2020
@pgwillia pgwillia deleted the docker_ignore_cache branch July 30, 2020 19:51
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 this pull request may close these issues.

2 participants