There is not yet a pre-built Docker image for git-annex. However, it's easy to add it to an image.
For example:
docker run -i -t debian apt-get install git-annex
There is not yet a pre-built Docker image for git-annex. However, it's easy to add it to an image.
For example:
docker run -i -t debian apt-get install git-annex
I want to use a recent
git-annexversion, and I prefer a Docker solution to a binary. There wasn't much documentation on how to do that, so here are the steps I took, just in case anybody finds this information useful. This is not a complete guide, just more than I was able to find so far.Install Docker so that you can access it (eg,
docker info) withoutsudo. (Beyond the scope in here.)Create a git-annex image as follows:
Dockerfile:
Build image and run basic test:
You still need to:
git-annexby a script that invokes the Dockerized version.sshandgpgcredentials on host.~/.gitconfigon host.gitrepository root as a volume, not just the current dir.Here is a sample script that achieves these. Name it
git-annex, and place it in yourPATHbefore the hostgit-annex(or just uninstall the latter).