Code Monkey home page Code Monkey logo

gitlist-docker's Introduction

gitlist

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.

gitlist-docker-lsio

This image is based off the linuxservers.io ubuntu base image.

Features

  • Updated to V1.0.2
  • Fix permission problems.

A host user can be mapped to the container's www server process via environment variables so no need to elevate file permission on the git repository. Useful if you need to run gitolite on a NAS which doesn't yet directly support dockers '--user' option.

Usage

You can build the image like this

git clone https://github.com/aklambeth/gitlist-docker.git
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 -e PUID=<user id> -e PGID=<group id>

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

Or, if you use docker-compose

version: "3"
services:
    gitlist:
    image: gitlist
    container_name: gitlist
    environment:
        - PUID=<user id>
        - PGID=<group id>
    volumes:git
        - /path/repo:/repos
    ports:
        - 8888:80

To get the PUID and PGID of a user run 'id <username>' eg -

$ id git
uid=1000(git) gid=1000(git) groups=1000(git) ...

gitlist-docker's People

Contributors

aklambeth avatar davibe avatar reyesr avatar hkotka avatar

Watchers

James Cloos avatar

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.