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-annex
version, 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-annex
by a script that invokes the Dockerized version.ssh
andgpg
credentials on host.~/.gitconfig
on host.git
repository 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 yourPATH
before the hostgit-annex
(or just uninstall the latter).