From ce9466b94bf2951fd43bafd02cca50f45f914490 Mon Sep 17 00:00:00 2001
From: Jacek Kowalski <Jacek@jacekk.info>
Date: Thu, 05 Mar 2020 01:03:16 +0000
Subject: [PATCH] Update Gitblit to version 1.9.0

---
 Dockerfile |    4 ++--
 run.sh     |    2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/Dockerfile b/Dockerfile
index a70faf0..ff48a3f 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -1,7 +1,7 @@
 FROM openjdk:8-jre
 MAINTAINER Jacek Kowalski <Jacek@jacekk.info>
 
-ENV GITBLIT_VERSION 1.8.0
+ENV GITBLIT_VERSION 1.9.0
 
 RUN apt-get update \
 	&& apt-get dist-upgrade -y \
@@ -12,7 +12,7 @@
 # Install Gitblit
 
 WORKDIR /opt
-RUN wget -O /tmp/gitblit.tar.gz http://dl.bintray.com/gitblit/releases/gitblit-${GITBLIT_VERSION}.tar.gz \
+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 \
diff --git a/run.sh b/run.sh
index 2467c21..8685420 100755
--- a/run.sh
+++ b/run.sh
@@ -10,4 +10,4 @@
 
 chown -Rf gitblit:gitblit /opt/gitblit-data
 
-exec sudo -u gitblit java $JAVA_OPTS -Djava.awt.headless=true -jar /opt/gitblit/gitblit.jar --baseFolder /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.9.1