Ok thanks again chewit,
This is what I came up with, if anybody else is in need of git
Based on alpine/git currently on the docker hub (https://hub.docker.com/r/alpine/git/)
and should work for arm32v6 and arm32v7 architecture
First make a dir to build the app
cd ~/
mkdir gitapp
cd gitapp
Then create a docker build file
nano Dockerfile
Paste the following
FROM arm32v6/alpine
LABEL maintainer Me <[email protected]>
RUN apk --update add git openssh && \
rm -rf /var/lib/apt/lists/* && \
rm /var/cache/apk/*
VOLUME /git
WORKDIR /git
ENTRYPOINT ["git"]
CMD ["--help"]
Display More
Use docker to build the git app
docker build .
This will build the docker container
when it has finished building, the last line of the output should read...
"Successfully built" followed by a number. take note of that nunber
Now add a function to the .profile/.bashrc located in the home dir.
this will be called every time git is called in the command line.
cd ~/
nano .profile
Paste the following replacing the ??? with the number outputed in the build process
Now reload the current user profile by loging out and back in or...
source ~/.profile
That should be it!
try running a git command from terminal
git help
If all is well the temp dir we created to build the app can be removed
rm -r ~/gitapp
regards