Giter Site home page Giter Site logo

gitblit-docker's Introduction

Gitblit & Docker

These instructions assume you are running Ubuntu and you have already installed Docker.

sudo apt-get install docker.io

Running Gitblit in Docker

You can use the Gitblit Docker image I have created here.

sudo docker.io pull jmoger/gitblit
<wait a while>
sudo docker.io run -d -name gitblit -p 443:443 -p 80:80 -p 9418:9418 -p 29418:29418 jmoger/gitblit

The followings commands should retrieve and execute the Gitblit image and launch Gitblit in a Docker container that serves the web ui on ports 80 and 443. Your repositories will also be accessible via ssh, http, https, and the git procotol. The RPC administration interface has also been enabled so that you may use the Gitblit Manager to configure settings, manage repositories, or manage users.

You should be able to browse to http://localhost or https://localhost and login as admin/admin.

You can stop your container with:

sudo docker.io stop gitblit

You can manually start your container with:

sudo docker.io start gitblit

Build Instructions

Thanks to Nicola Paolucci at Atlassian for the terrific Stash example.

Clone this Repository

git clone https://github.com/gitblit/gitblit-docker.git

Build your Docker container

cd gitblit-docker
sudo docker.io build -t jmoger/gitblit:1.5.1 .

Run your Gitblit container and setup localhost port-forwarding (-p localhost:container)

sudo docker.io run -d --name gitblit -p 443:443 -p 80:80 -p 9418:9418 -p 29418:29418 jmoger/gitblit:1.5.1

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.