项目作者: motet-a

项目描述 :
A Docker image for cgit with Apache httpd
高级语言: ApacheConf
项目地址: git://github.com/motet-a/docker-httpd-cgit.git
创建时间: 2016-11-26T13:58:52Z
项目社区:https://github.com/motet-a/docker-httpd-cgit

开源协议:MIT License

下载


docker-httpd-cgit

A Docker image for cgit with Apache
httpd.

Build it with ./build.sh. The created image name is http-cgit.

cgit is compiled inside a temporary build image and then copied into
a ligther production image. It is probably overkill since we can also
do everything in the same image and uninstall build dependencies after
the complation, but it’s fun to see this little hack working :-)

You have to setup a volume to fill the directory /var/cgit-repos/
with the list of the bare Git repositories to be served. It’s easy to
do with a docker-compose.yml:

  1. version: '2'
  2. services:
  3. httpd-cgit:
  4. image: httpd-cgit
  5. volumes:
  6. - ./repos-on-the-host:/var/cgit-repos
  7. ports:
  8. - "3000:80"