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

Docker build doesn't work without Git files #3028

Closed
ZeiP opened this issue Jun 30, 2024 Discussed in #3027 · 1 comment · Fixed by #3037
Closed

Docker build doesn't work without Git files #3028

ZeiP opened this issue Jun 30, 2024 Discussed in #3027 · 1 comment · Fixed by #3037
Labels
bug 🐛 Problems with the code that result in unexpected or bad behavior

Comments

@ZeiP
Copy link
Member

ZeiP commented Jun 30, 2024

Discussed in #3027

Originally posted by DPBiff June 30, 2024
I have tried to install Tracks several ways. I've managed to install it on my own linux box exactly one time. Ruby is very difficult. I have it running in a Turnkey appliance and it's great, but... I want to be able to access it from the cloud & can't becuse .. ISP. So I have a VPS i want to install it on. I'm following the instructions and can't get past the first step. This is what I get:
=> ERROR [27/28] COPY .git /app/.git 0.0s

[27/28] COPY .git /app/.git:


Dockerfile:39

37 | COPY db /app/db/
38 |
39 | >>> COPY .git /app/.git
40 |
41 | RUN RAILS_ENV=production bundle exec rake assets:precompile

ERROR: failed to solve: failed to compute cache key: failed to calculate checksum of ref 75e4bac4-034c-4eb8-b7f2-22a96b33957d::810xvjt2hbr92ueqapobps4f4: "/.git": not found

VPS is runing Alma Linux 8, Docker is installed correctly... ?? Help?

@ZeiP
Copy link
Member Author

ZeiP commented Jun 30, 2024

.git is copied inside the image to show the Git version in the UI; however this won't work if one's using for example a version archive that doesn't have the .git directory.

@ZeiP ZeiP added the bug 🐛 Problems with the code that result in unexpected or bad behavior label Jun 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐛 Problems with the code that result in unexpected or bad behavior
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant