Public | Automated Build

Last pushed: 5 months ago
Short Description
Gitblit GO ready to serve your Git repositories!
Full Description

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.6.2 .

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.6.2
Docker Pull Command
Owner
jmoger
Source Repository

Comments (1)
nidget
2 years ago

I was getting an SSL certificate error in my git commands when trying to clone GitBlit respositories:

fatal: unable to access ...: server certificate verification failed. CAfile: /etc/ssl/certs/ca-certificates.crt CRLfile: none

This has been solved by setting the following environment variable in order to disable the verification of the certificate by git:

export GIT_SSL_NO_VERIFY=1

Though this should be used for testing purposes only.