diff --git a/.gitignore b/.gitignore index ee6ab96..84bf010 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,6 @@ -data/repositories -data/plugins -data/gist -data/data -backup +/data/repositories +/data/plugins +/data/gist +/data/data +/backup +/gitbucket.conf diff --git a/README.md b/README.md index 0907edf..a86c0cd 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,7 @@ # docker container for gitbucket [![Build Status](https://jenkins.pgollor.de/job/gitbucket-docker-master/badge/icon)](https://jenkins.pgollor.de/job/gitbucket-docker-master/) +[![Donate](https://img.shields.io/badge/Donate-PayPal-green.svg)](https://paypal.me/pgollor) This docker container of [gitbucket](https://github.com/gitbucket/gitbucket.git) is in beta state! @@ -42,22 +43,17 @@ cd gitbucket ``` -2. Generate new passwords for your databse!!! +2. Execute install script ``` -./generate_password.sh +./install.sh ``` -3. Get latest container: -``` -docker-compose pull -``` - -4. Change the confoguration and start with: +3. Change the confoguration and start with: ``` docker-compose up -d ``` -5. Open `127.0.0.1:8080` and be habby. :-) +4. Open `127.0.0.1:8080` and be habby. :-) Default user and passwort are both root. diff --git a/docker-compose.yml b/docker-compose.yml index cceee7d..10eeede 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -20,6 +20,7 @@ - ./data/data/:/srv/gitbucket/data/ - ./data/gist/:/srv/gitbucket/gist/ - ./data/plugins/:/srv/gitbucket/plugins/ + - ./data/tmp/:/srv/gitbucket/tmp/ - ./data/conf/gitbucket/gitbucket.conf:/srv/gitbucket/gitbucket.conf tmpfs: - /tmp diff --git a/docker/Dockerfile b/docker/Dockerfile index d924d4d..8c85db1 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -1,6 +1,10 @@ FROM anapsix/alpine-java:8 LABEL maintainer "Pascal Gollor " +# ports +EXPOSE 29418 +EXPOSE 8080 + ENV GITBUCKET_HOST 0.0.0.0 ENV GITBUCKET_PORT 8080 ENV GITBUCKET_HOME /srv/gitbucket @@ -10,13 +14,14 @@ VOLUME $GITBUCKET_HOME/data VOLUME $GITBUCKET_HOME/gist VOLUME $GITBUCKET_HOME/plugins +VOLUME $GITBUCKET_HOME/tmp # setup RUN apk update RUN apk add ca-certificates wget su-exec git # get gitbucket -RUN wget https://github.com/gitbucket/gitbucket/releases/download/4.19.3/gitbucket.war -O $GITBUCKET_HOME/latest.war +RUN wget https://github.com/gitbucket/gitbucket/releases/download/4.20.0/gitbucket.war -O $GITBUCKET_HOME/latest.war # clean RUN apk del wget diff --git a/generate_password.sh b/generate_password.sh deleted file mode 100755 index 5a0c220..0000000 --- a/generate_password.sh +++ /dev/null @@ -1,7 +0,0 @@ -#!/bin/bash - -pw1=$(