Code Monkey home page Code Monkey logo

gitlist-docker's Introduction

gitlist-docker

A ready to use docker image with preinstalled nginx and gitlist.

You can use it to quickly expose a web interface of the git repositories in a directory of your host machine.

The dockerfile uses the lastest gitlist-master.tar.gz distribution available.

Usage

You can build the image like this

git clone <this repo>
cd gitlist-docker
docker build --rm=true -t gitlist .

And run it like this

docker run --rm=true -p 8888:80 -v /path/repo:/repos gitlist

The web interface will be available on host machine at port 8888 and will show repositories inside /path/repo

gitlist-docker's People

Contributors

davibe avatar hkotka avatar reyesr avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

gitlist-docker's Issues

Nginx 502

I wanted to try out this image to test gitlist without installing all of its deps, but I get a 502 Bad Gateway response from localhost:8888 no matter what I do.

I tried working with my gitolite repositories directory (bare repos), I tried changing the permissions to more liberal settings as described here, I tried chowning all of the bare repos to my user, I even tried working with regular (non-bare) repos -- all mounted to /repos. Nothing worked for me; Nginx gives a 502 no matter what.

Doc update: use :ro modifier on volume mount example

The container does not need write access to the host's repositories, so for safety sake, it's better to force read-only access by appending the :ro modifier to the -v command line option.

I.e. change this:
docker run --rm=true -p 8888:80 -v /path/repo:/repos gitlist
to this:
docker run --rm=true -p 8888:80 -v /path/repo:/repos:ro gitlist

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.