dehub/cmd/http-server
mediocregopher 85d79ff71a add INTRODUCTION and update http-server/README
message: add INTRODUCTION and update http-server/README
change_hash: ADFDw8cLgmC1JaW0Ii35PV+aKpZIpw4y7Je4uRJBLCFe
credentials:
- type: pgp_signature
  pub_key_id: 95C46FA6A41148AC
  body: iQIzBAABAgAdFiEEJ6tQKp6olvZKJ0lwlcRvpqQRSKwFAl5JowIACgkQlcRvpqQRSKzZnQ/+IPM7Ra6IYqsve5PYXwOeALzjpUWcdtcbnHNyrYSR+h09J/EEMw/hlg/HgrbTIOLcxuuBNi849sH3v8G/R0zc8Iisjhaq9PAZC20pHe8KNuaHPqmu5tP4zKKYShqDzj5fZSV9fzEiL5JVUSr0YAVEuxqg0UiKnv9MBOqdYR4GP+tIgNyWwMRmJ0ZnlVjj23e5h6onC1YHPWdsl7+3IqEefXGFcAR81wysyoH/uQDmfSQxncWEey1vUhuK05LpwdezKVOKrfogEJoUYMcpKOTw9vRvrPkGUgEwxXZs0ENg0aEs9F7m3+Yaao+I8jiBlEImIJWs9rO+bAzRebDJS28jT+ENm9RIRFmGWwkK58gP7jZdbwnZATyVLrW84RAQfgISXntE4SvJAcLzxCNReB6cKA1HZC+ozmHcJkovpMMY/RBC4Px9eAf49utNzk5otoM2/zQqU99b1JoSFt3K34ric80kGhpo1Gz47sVEyKKi5koyhYuZX2GZhc+yTVC2LxYuekV8/FlxAPE7zVF/hvXa3957nPiaBdi7mTX/JRpDA4UrCuPY2JMpLCfW7IQ77Vw4mJacAHs/OpxDKGqupi9dMlre2NpqqJntIRMUdi9eDkvzddw3odnYfij5HlkC7mKzvVbBKoM5w0SjfqH/5UiVopWFKII8JMepiil/NNHEJBE=
  account: mediocregopher
2020-02-16 13:16:02 -07:00
..
.gitignore Change all references to 'master' into 'trunk' 2020-02-16 10:28:59 -07:00
Dockerfile add initial implementation of the http-server 2020-02-15 20:32:00 -07: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 add INTRODUCTION and update http-server/README 2020-02-16 13:16:02 -07:00
run.sh add initial implementation of the http-server 2020-02-15 20:32:00 -07:00
start.sh add initial implementation of the http-server 2020-02-15 20:32:00 -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 trunk 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.