TracksApp / tracks

Tracks is a GTD™ web application, built with Ruby on Rails
https://www.getontracks.org/
GNU General Public License v2.0
1.18k stars 537 forks source link

Docker build doesn't work without Git files #3028

Closed ZeiP closed 2 months ago

ZeiP commented 3 months ago

Discussed in https://github.com/TracksApp/tracks/discussions/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 commented 3 months ago

.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.