f99aq8ove / docker-gitbucket

Docker files for https://github.com/gitbucket/gitbucket
The Unlicense
29 stars 27 forks source link

NullPointerException on user icons #47

Closed indication closed 6 years ago

indication commented 7 years ago

see https://github.com/docker-library/openjdk/issues/73 This changes increase size of the image about 20 MiB more.

The purpose is fix missed image on user icons. (fix HTTP 500)

Signed-off-by: in_dow in_dow@hotmail.com

indication commented 6 years ago

Corrected the mistake.

Note: here is the log that fix code is used.

[cent@localhost gitbucket]$ sudo docker-compose build
Building gitbucket
Step 1/10 : FROM openjdk:jre-alpine
 ---> e2f6fe2dacef
Step 2/10 : MAINTAINER f99aq8ove <(snip)>
 ---> Using cache
 ---> a821f2e2a992
Step 3/10 : ADD https://github.com/gitbucket/gitbucket/releases/download/4.18.0/gitbucket.war /opt/gitbucket.war
^[[6~
 ---> de709712bc1a
Step 4/10 : RUN apk add --no-cache ttf-dejavu git
 ---> Running in 178a7bc0350f
fetch http://dl-cdn.alpinelinux.org/alpine/v3.6/main/x86_64/APKINDEX.tar.gz
fetch http://dl-cdn.alpinelinux.org/alpine/v3.6/community/x86_64/APKINDEX.tar.gz
(1/11) Installing libssh2 (1.8.0-r1)
(2/11) Installing libcurl (7.56.1-r0)
(3/11) Installing expat (2.2.0-r1)
(4/11) Installing pcre (8.41-r0)
(5/11) Installing git (2.13.5-r0)
(6/11) Installing fontconfig (2.12.1-r0)
(7/11) Installing encodings (1.0.4-r0)
(8/11) Installing libfontenc (1.1.3-r1)
(9/11) Installing mkfontscale (1.0.7-r2)
(10/11) Installing mkfontdir (1.0.5-r1)
(11/11) Installing ttf-dejavu (2.35-r0)
Executing busybox-1.26.2-r5.trigger
Executing fontconfig-2.12.1-r0.trigger
Executing mkfontscale-1.0.7-r2.trigger
Executing mkfontdir-1.0.5-r1.trigger
OK: 119 MiB in 61 packages
 ---> b3a5b2c5c039
Removing intermediate container 178a7bc0350f
Step 5/10 : COPY gitbucket.sh /opt/gitbucket.sh
 ---> 13f175797bc9
Step 6/10 : RUN ln -s /gitbucket /root/.gitbucket
 ---> Running in b0a74326cc59
 ---> 16ffe0bdd545
Removing intermediate container b0a74326cc59
Step 7/10 : VOLUME /gitbucket
 ---> Running in 47532c52865f
 ---> 9fa5723087ab
Removing intermediate container 47532c52865f
Step 8/10 : EXPOSE 8080
 ---> Running in c45eceb66f89
 ---> 54749be8ba71
Removing intermediate container c45eceb66f89
Step 9/10 : EXPOSE 29418
 ---> Running in d777d38415a6
 ---> 985f1a9d0864
Removing intermediate container d777d38415a6
Step 10/10 : CMD /opt/gitbucket.sh
 ---> Running in 8a20610ed7bb
 ---> 8f671db8567c
Removing intermediate container 8a20610ed7bb
Successfully built 8f671db8567c
Successfully tagged gitbucket_gitbucket:latest

Thank you for reviewing and providing the good container.

f99aq8ove commented 6 years ago

Thanks, this is exactly what I was looking for!