dehub/cmd/http-server
mediocregopher a3b98cc4ef move Dockerfile into the root, make it build git-http-server as well
---
type: change
message: move Dockerfile into the root, make it build git-http-server as well
change_hash: AMsTQSEBo/XDnbkuiSStDsWUdian3UXM5YXlMhvTlegk
credentials:
- type: pgp_signature
  pub_key_id: 95C46FA6A41148AC
  body: iQIzBAABAgAdFiEEJ6tQKp6olvZKJ0lwlcRvpqQRSKwFAl59b6MACgkQlcRvpqQRSKzD0g//Qja8EIF/cdOz5OrqdXOJeUqUm2QfZuUrDANZey3rTtpULAy3OTezrSTEK//bd+DLa+hf9r0hTocCzhTx5RO6wKYup0LMdiO6QGeXhdKzVjuN0FA7jQztjgZD5Y/P+PT9Ye8NiCPrQ8gdtG3BRB5RDgHILQNclvt5GyKMske4rYbi99DtnrSbbqP0n7dZLaurAkP7fQL2Q+8/o8Vt+uAl8s2whMJ1z7+Z8YqN+uUcHfuTxEcBkW97qjsjhpk9ZVSzpw6GXjuFy/n9uBk2mVyaoMcKtk03SCB7byCK7uM3mNMakr+m2W+RQMlzpUlYToFL9uWHoDouANK3kDLyM7WpEPIajU6Cuq5C97KsqQWNTrFypLlYx/IiUbKg0LJVyckw0jl98iY7jIDOKkQmNIYwaQ8IvXtJ459Jo0DSvmE8IEoCxskfvlh7YZU9keu1spW/k8M22RPvrrjU34IhIokkA1KbVBaNyMRoypjH0PptRleU4+Vmdf4MGg9heft2+JqYcs7pHVDYVSs1TFPRfmlhcf2CtixuWcqIpNiQEW/S1ZdcJ7Ifsv+6hNTYQqqNz6fS70cm58mA7lPZ+LFoNaaXcCYAHwq+y3RYXlm1I1fEDrv6RLuxNvOWAxGelCvDv5M5M3zdm5DHvrmPMk8fOfRKck7eWRMD6o/FV4f/K04R3TY=
  account: mediocregopher
2020-03-26 21:14:54 -06:00
..
nginx.conf specify the http root in the nginx conf file 2020-02-16 13:07:45 -07:00
pre-receive add initial implementation of the http-server 2020-02-15 20:32:00 -07:00
README.md Rename trunk branch to main branch 2020-03-04 12:14:54 -07:00
run.sh add initial implementation of the http-server 2020-02-15 20:32:00 -07:00
start.sh Rename trunk branch to main branch 2020-03-04 12:14:54 -07:00

dehub-server

This directory provides a simple Docker image which can be spun up to run a dehub-enabled git http server (i.e. one in which incoming commits will be verified prior to being accepted into the main branch).

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

Usage

Running the following:

docker run \
    --name dehub \
    -v /opt/dehub/repos:/repos \
    -v /opt/dehub/www:/var/www \
    -p 8080:80 \
    mediocregopher/dehub repo-a repo-b

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

If a volume for /var/www is given then that will be used as the root for all non-git http requests.

Contributors

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