You can find here Dockerfiles for building OpenSSH server images + installed git. These based on Fedora:latest image.
OpenSSH runs as the git
user. Suitable for OpenShift non-privileged usage. A pre-built image can be found on:
https://hub.docker.com/r/aosqe/ssh-git-server-openshift/
OpenSSH runs as the git
user. Can run in OpenShift only in privileged mode. A pre-built image can be found on:
https://hub.docker.com/r/aosqe/ssh-git-server/ (see git-<timestamp tag>)
OpenSSH run as root. Can run in OpenShift only in privileged mode. Advantage is that you can configure multiple users with that image.
A pre-built image can be found on: https://hub.docker.com/r/aosqe/ssh-git-server/ (see root-<timestamp tag>)
Not very suitable for persistance yet. Using them for testing presently. TODO: modify and add ability to use persistent volumes.
HowTo style blog about building and running these images along with some OpenShift specific info and tips: http://rboci.blogspot.bg/2016/06/creating-docker-images-suitable-for.html