Sign inSign up

tomaka/git-docker-registry

By tomaka

Updated about 9 years ago

Git repository that automatically builds Dockerfiles and pushes them into a registry

Image
0

324

tomaka/git-docker-registry repository overview

Git-docker-registry

This image contains a git repository served by a proxy, exposed by port 80.

Note that this git repository is accessible anonymously. Therefore, do not expose this port without using a reverse proxy like traefik or nginx with HTTP authentication.

Whenever you push to the git repository, a script will run. It will try to find any Dockerfile in any of the immediate children directory of the repository, and build each of them.

If you pass the REGISTRY_URL environment variable, then the built images will also be pushed to the given registry.

Usage

docker service create --name git-docker-registry --mount src=git-docker-repo,dst=/var/git \
    --mount type=bind,src=/var/run/docker.sock,dst=/var/run/docker.sock \
    -e REGISTRY_URL=localhost:5000 --constraint node.role==manager \
    tomaka/git-docker-registry

Tag summary

Content type

Image

Digest

Size

200.8 MB

Last updated

about 9 years ago

docker pull tomaka/git-docker-registry