Public | Automated Build

Last pushed: a month ago
# Basics # from ubuntu:latest maintainer James Moger <> run apt-get update run apt-get install -q -y git-core redis-server # Install Java 7 run DEBIAN_FRONTEND=noninteractive apt-get install -q -y software-properties-common run DEBIAN_FRONTEND=noninteractive apt-get install -q -y python-software-properties run DEBIAN_FRONTEND=noninteractive apt-add-repository ppa:webupd8team/java -y run apt-get update run echo oracle-java8-installer shared/accepted-oracle-license-v1-1 select true | /usr/bin/debconf-set-selections run DEBIAN_FRONTEND=noninteractive apt-get install oracle-java8-installer -y # Install Gitblit run apt-get install -q -y curl run curl -Lks -o /root/gitblit.tar.gz run mkdir -p /opt/gitblit-tmp run tar zxf /root/gitblit.tar.gz -C /opt/gitblit-tmp run mv /opt/gitblit-tmp/gitblit-1.8.0 /opt/gitblit run rm -rf /opt/gitblit-tmp run rm -f /root/gitblit.tar.gz # Move the data files to a separate directory run mkdir -p /opt/gitblit-data run mv /opt/gitblit/data/* /opt/gitblit-data # Adjust the default Gitblit settings to bind to 80, 443, 9418, 29418, and allow RPC administration. # # Note: we are writing to a different file here because sed doesn't like to the same file it # is streaming. This is why the original properties file was renamed earlier. run echo "server.httpPort=80" >> /opt/gitblit-data/ run echo "server.httpsPort=443" >> /opt/gitblit-data/ run echo "server.redirectToHttpsPort=true" >> /opt/gitblit-data/ run echo "web.enableRpcManagement=true" >> /opt/gitblit-data/ run echo "web.enableRpcAdministration=true" >> /opt/gitblit-data/ # Setup the Docker container environment and run Gitblit workdir /opt/gitblit expose 80 expose 443 expose 9418 expose 29418 cmd ["java", "-server", "-Xmx1024M", "-Djava.awt.headless=true", "-jar", "/opt/gitblit/gitblit.jar", "--baseFolder", "/opt/gitblit-data"]
Source Repository