Gitblit image based on Java image from Docker Hub
edit | blame | history | raw

Gitblit

This is a Docker image of Gitblit (http://gitblit.com/)
based on openjdk:8-jre

Usage

docker run -d --name=gitblit \
	-p 8080:8080 -p 8443:8443 \
	-p 9418:9418 -p 29418:29418 \
	jacekkow/gitblit

Gitblit interface should be available at http://127.0.0.1:8080/
(user/password: admin/admin)

By default it uses Docker data volume for persistence.

You can update such installation by passing --volumes-from option
to docker run:

docker pull jacekkow/gitblit
docker stop gitblit
docker rename gitblit gitblit-old
docker run -d --name=gitblit \
	-p 8080:8080 -p 8443:8443 \
	-p 9418:9418 -p 29418:29418 \
	--volumes-from gitblit-old \
	jacekkow/gitblit
docker rm -v gitblit-old

Local storage

If you prefer to have direct access to container's data
from the host, you can use local storage instead of data volumes:

docker run -d --name=gitblit \
	-p 8080:8080 -p 8443:8443 \
	-p 9418:9418 -p 29418:29418 \
	-v /srv/gitblit:/opt/gitblit-data \
	jacekkow/gitblit

gitblit-data volume will be automatically populated
with default configuration if necessary.

File ownership is recursively changed to
gitblit:gitblit (500:500) on each start.

Configuration

You can configure the instance by editing files
in directory /opt/gitblit-data inside the container
(or appropriate host dir if local storage is used).

By default the JVM is started with options -server -Xmx1024m.
You can override this default using JAVA_OPTS environment
variable:

docker run -d --name=gitblit \
	-p 8080:8080 -p 8443:8443 \
	-p 9418:9418 -p 29418:29418 \
	-e "JAVA_OPTS=-Xmx512m" \
	jacekkow/gitblit
edit | blame | history | raw
BSD 3-Clause License

Copyright (c) 2015-2020, Jacek Kowalski
All rights reserved.

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:

1. Redistributions of source code must retain the above copyright notice, this
   list of conditions and the following disclaimer.

2. Redistributions in binary form must reproduce the above copyright notice,
   this list of conditions and the following disclaimer in the documentation
   and/or other materials provided with the distribution.

3. Neither the name of the copyright holder nor the names of its
   contributors may be used to endorse or promote products derived from
   this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
README 2 KB