Sign inSign up

ptcookie/git-server

By ptcookie

Updated about 1 year ago

Container image for Git and SSH server.

Image
Developer tools
0

1.5K

ptcookie/git-server repository overview

Git Server Container

Container image for Git and SSH server.

Run

Make volume for git repository.

docker volume create git-repository
podman volume create git-repository

Optionally, make volume for SSH host keys, and copy keys to volume.

docker volume create git-ssh-keys
podman volume create git-ssh-keys

Run container.

docker run -d --name git-server \
    --env GIT_USER_UID=1000 \
    --env GIT_USER_GID=1000 \
    --env SSH_PUBLIC_KEYS_URL=https://url.to.authorized.keys \
    # --env SSH_HOST_KEYS_PATH=/tmp/host-keys \
    --publish 2222:22 \
    --volume git-repository:/srv/git \
    # --volume git-ssh-keys:/tmp/host-keys:ro \
    git-server:latest
podman run -d --name git-server \
    --env GIT_USER_UID=1000 \
    --env GIT_USER_GID=1000 \
    --env SSH_PUBLIC_KEYS_URL=https://url.to.authorized.keys \
    # --env SSH_HOST_KEYS_PATH=/tmp/host-keys \
    --publish 2222:22 \
    --volume git-repository:/srv/git \
    # --volume git-ssh-keys:/tmp/host-keys:ro \
    git-server:latest

License

MIT © PtCookie

Softwares in container image may be under their own licenses.

Mics

Inspired by git-server-docker

Tag summary

Content type

Image

Digest

sha256:1e47f8e5c

Size

12.5 MB

Last updated

about 1 year ago

docker pull ptcookie/git-server