Sign inSign up

1nfiniteloop/git-remote

By 1nfiniteloop

Updated about 5 years ago

Image
0

1.5K

1nfiniteloop/git-remote repository overview

Overview

This is a minimal and simple git remote for hosting and sharing git-repositories. The remote repositories is accesssed through SSH (push/pull). It's possible to initialize and list all repositoris using git-shell through SSH.

Versions

  • 1nfiniteloop/git-remote:latest from here.

Volumes

  • /srv/git

Ports

  • 22

Environment variables

  • AUTHORIZED_KEYS

Author

Lars Gunnarsson

License

MIT

Usage

  1. Provide the login ssh-keys for the user git with e.g. export AUTHORIZED_KEYS=$(cat ~/.ssh/my-git-remote.com/*.pub)
  2. Start container:
 docker run \
    --name=git-remote \
    --detach \
    --publish 0.0.0.0:8022:22 \
    --volume git:/srv/git \
    --env=AUTHORIZED_KEYS \
    1nfiniteloop/git-remote:latest
  1. Initialize a repository on the git-remote with ssh [email protected]
git> init hello-world
  1. Clone the empty repository with git clone my-git-remote.com:shared/hello-world.git.

Tag summary

Content type

Image

Digest

Size

18.1 MB

Last updated

about 5 years ago

docker pull 1nfiniteloop/git-remote