From 75f473a2526f58ac07aed24ad75bee69c23d7d45 Mon Sep 17 00:00:00 2001
From: Jacek Kowalski <Jacek@jacekk.info>
Date: Tue, 16 Dec 2025 15:39:26 +0000
Subject: [PATCH] Deprecate container

---
 /dev/null |   13 ------
 README.md |   70 +++--------------------------------
 2 files changed, 6 insertions(+), 77 deletions(-)

diff --git a/Dockerfile b/Dockerfile
deleted file mode 100644
index 3345fa5..0000000
--- a/Dockerfile
+++ /dev/null
@@ -1,39 +0,0 @@
-FROM eclipse-temurin:8-jre
-MAINTAINER Jacek Kowalski <Jacek@jacekk.info>
-
-ENV GITBLIT_VERSION 1.10.0
-
-RUN apt-get update \
-	&& apt-get dist-upgrade -y \
-	&& apt-get install -y git-core sudo wget \
-	&& apt-get clean \
-	&& rm -Rf /var/lib/apt/lists/*
-
-# Install Gitblit
-
-WORKDIR /opt
-RUN wget -O /tmp/gitblit.tar.gz "https://github.com/gitblit/gitblit/releases/download/v${GITBLIT_VERSION}/gitblit-${GITBLIT_VERSION}.tar.gz" \
-	&& tar xzf /tmp/gitblit.tar.gz \
-	&& rm -f /tmp/gitblit.tar.gz \
-	&& ln -s gitblit-${GITBLIT_VERSION} gitblit \
-	&& mv gitblit/data gitblit-data-initial \
-	&& mkdir gitblit-data \
-	&& groupadd -r -g 500 gitblit \
-	&& useradd -r -d /opt/gitblit-data -u 500 -g 500 gitblit \
-	&& chown -Rf gitblit:gitblit /opt/gitblit-*
-
-# Adjust the default Gitblit settings to bind to 8080, 8443, 9418, 29418, and allow RPC administration.
-
-RUN echo "server.httpPort=8080" >> gitblit-data-initial/gitblit.properties \
-	&& echo "server.httpsPort=8443" >> gitblit-data-initial/gitblit.properties \
-	&& echo "web.enableRpcManagement=true" >> gitblit-data-initial/gitblit.properties \
-	&& echo "web.enableRpcAdministration=true" >> gitblit-data-initial/gitblit.properties
-
-# Setup the Docker container environment and run Gitblit
-
-VOLUME /opt/gitblit-data
-EXPOSE 8080 8443 9418 29418
-
-WORKDIR /opt/gitblit
-COPY run.sh /run.sh
-CMD /run.sh
diff --git a/LICENSE b/LICENSE
deleted file mode 100644
index be1d3cf..0000000
--- a/LICENSE
+++ /dev/null
@@ -1,29 +0,0 @@
-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.
diff --git a/README.md b/README.md
index 8cb9403..35ab309 100644
--- a/README.md
+++ b/README.md
@@ -1,70 +1,12 @@
 # Gitblit
 
-This is a Docker image of Gitblit (http://gitblit.com/)
-based on `openjdk:8-jre`
+This Docker image is deprecated.
 
-## Usage
+Use the official one instead:
+https://github.com/gitblit-org/gitblit-docker
 
-```bash
-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`)
+## Migration
 
-By default it uses Docker data volume for persistence.
-
-You can update such installation by passing `--volumes-from` option
-to `docker run`:
-
-```bash
-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:
-
-```bash
-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:
-
-```bash
-docker run -d --name=gitblit \
-	-p 8080:8080 -p 8443:8443 \
-	-p 9418:9418 -p 29418:29418 \
-	-e "JAVA_OPTS=-Xmx512m" \
-	jacekkow/gitblit
-```
+Please read "Migrating from an older image" section here:
+https://github.com/gitblit-org/gitblit-docker/blob/master/README.md
diff --git a/run.sh b/run.sh
deleted file mode 100755
index 8685420..0000000
--- a/run.sh
+++ /dev/null
@@ -1,13 +0,0 @@
-#!/bin/bash
-
-if [ ! -f /opt/gitblit-data/gitblit.properties ]; then
-	cp -Rf /opt/gitblit-data-initial/* /opt/gitblit-data/
-fi
-
-if [ -z "$JAVA_OPTS" ]; then
-	JAVA_OPTS="-server -Xmx1024m"
-fi
-
-chown -Rf gitblit:gitblit /opt/gitblit-data
-
-exec sudo -u gitblit `which java` $JAVA_OPTS -Djava.awt.headless=true -cp 'gitblit.jar:ext/*' com.gitblit.GitBlitServer --baseFolder /opt/gitblit-data

--
Gitblit v1.10.0