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 Dockerfile #75

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Add Dockerfile #75

wants to merge 1 commit into from

Conversation

fabpot
Copy link
Contributor

@fabpot fabpot commented Mar 2, 2024

No description provided.

@phenaproxima
Copy link

Just wanted to report that I checked out this branch and was able to build the image successfully (docker build .) using Colima 0.7.5 on macOS Sonoma 14.7.

@phenaproxima
Copy link

However...when I tried to run this command:

docker run --rm -v $PWD:/data phenaproxima/splitsh:test --prefix=project_template/

(phenaproxima/splitsh:test is just my local tag name for the built image), I got this:

config value 'safe.directory' was not found

Did I do something wrong?

@phenaproxima
Copy link

I got past the safe.directory error by altering the Dockerfile to copy a gitconfig file into /etc:

safe.directory="*"

But then I ran into this: repository path '/data/' is not owned by current user when I ran docker run --rm -v $PWD:/data IMAGE_ID --prefix=project_template/

@phenaproxima
Copy link

phenaproxima commented Oct 22, 2024

Got this to work by using the hack in libgit2/libgit2#6663 (comment).

docker run --rm -v $PWD:/data -e SUDO_UID=$(id -u) 7343ebd3ff68 --prefix=project_template/
16 commits created, 403 commits traversed, in 446ms
00167c4d8f10aae004462f4ad3dd697e0c6e5d69

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