Skip to content

Latest commit

 

History

History
50 lines (38 loc) · 1.67 KB

README.md

File metadata and controls

50 lines (38 loc) · 1.67 KB

Gitblit & Docker

Running Gitblit in Docker

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

sudo docker pull jasoncorbett/gitblit
<wait a while>
sudo docker run -d -name gitblit -p 443:443 -p 80:80 -p 9418:9418 jasoncorbett/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 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 stop gitblit

You can manually start your container with:

sudo docker start gitblit

Build Instructions

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

These instructions assume you are working with Fedora 19 or 20.

Get Docker

sudo yum install docker-io

Clone this Repository

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

Build your Docker container

cd gitblit-docker
sudo docker build -t jasoncorbett/gitblit:1.5.0 .

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

sudo docker run -d -name gitblit -p 443:443 -p 80:80 -p 9418:9418 jasoncorbett/gitblit:1.5.0