dehub/cmd/dehub-remote
mediocregopher 54af1ee510 add init command
---
type: change
message: |-
  add init command

  This ended up being bigger than expected. I decided to make the init command
  also handle setting up the git config and pre-receive hook for remote-enabled
  repositories, which took me on a bit of a journey through how go-git handles the
  filesystem. In the end this greatly simplifies dehub-remote, and will make
  getting new people set up with a repo much more straightforward.
change_hash: AHlWg77eGGr071jVIMJtv+DU3U9x+tcTUsegt4yrk/9W
credentials:
- type: pgp_signature
  pub_key_id: 95C46FA6A41148AC
  body: iQIzBAABAgAdFiEEJ6tQKp6olvZKJ0lwlcRvpqQRSKwFAl6I6oAACgkQlcRvpqQRSKw+dxAAjirfVfIsudnYo3TJxaR1qhQmJJg7v2aMnRQXgYKHEpy8Z1m994WyH3sGJhDQsx3Z/26XjW7fOgXUUKnqZNLp+js182yNo855Ik0vUuEHunAy+YXkBklo3AlkQSJlug9kJrYYjKH4PsJnPZ5JcHXyauxcaydFwHQP61+wiuX/y4iVP/T79ljqbe8GXVj50+rzhu1cRGEgUswnBNSVLYyecU+aEOejfb5CMoCsVtFKunHc+PyHmFJ1XVTwhF/wsCI3pxKYJ/wGqTW6urV46vZhp4SZIJFbSaQkIWuEUXg4JDp8prqgt2IdVlK/wfjxe7YXB9YpzcC4Wblc+m6tiX2lIuEogTyaRK31A2M5/f4m7f7DnPddbZ/fKQ2BBLyLJTtGSQxaFc6LzEmjgMUoUGvkGEPHcaZ1CAOOdcEYn3Y1uwwh4+BJhKPdfpHY4c10+F1Dhi86A4Pi/QmUZ0Cgr9u08wMg1efvD1VTZ6QPX9tpTKi0YqflFdDCDKlLtuA9AvTKBOGGC/XOCmCGjqFpptVRAf+Fl/7DtPG1TUVnKAs1CIw85cMYtEvTptCnMNkwnRFpwiFy856RvpR7RUiQfkWkdohwUY5psFfggOktTgydm5nULWZ4AzZW430MIeJj9XH8FKvYfTN08T9C1kYCwMtC9HYMmXuPdCJNuymQNBAWgaY=
  account: mediocregopher
2020-04-04 14:13:57 -06:00
..
nginx.conf make docker-remote not force a .git extension 2020-03-29 14:59:01 -06:00
README.md Documentation fixes for dehub-remote and git-http-server 2020-03-29 16:38:08 -06:00
start.sh add init command 2020-04-04 14:13:57 -06:00

dehub-remote

This directory provides a simple Docker image which can be spun up to run a dehub-enabled git http remote server. Commits which are pushed to this server will be automatically verified using dehub verify.

The docker image is also being hosted on docker hub at mediocregopher/dehub-remote. Proper image tagging/versioning coming soon!

Usage

Running the following:

docker run \
    --name dehub \
    -v /opt/dehub/repos:/repos \
    -p 8080:80 \
    mediocregopher/dehub-remote repo-a.git repo-b.git

Will start an http server on port 8080, using /opt/dehub/repos to store all repo folders. It will then initialize repo directories at /opt/dehub/repos/repo-a.git and /opt/dehub/repos/repo-b.git, if they arent already there.

Extras

For convenience the docker image also includes the git-http-server binary.

Contributors

The Dockerfile being used is based on gitbox, so thank you to nmarus for the great work there.