Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docker build fails #2879

Closed
rrrnld opened this issue Nov 10, 2017 · 4 comments · Fixed by #2927
Closed

Docker build fails #2879

rrrnld opened this issue Nov 10, 2017 · 4 comments · Fixed by #2927
Labels
type/question Issue needs no code to be fixed, only a description on how to fix it yourself.

Comments

@rrrnld
Copy link

rrrnld commented Nov 10, 2017

I just tried building the docker image locally and it wasn't possible; here's the log:

~/tmp/gitea master          
❯ docker build -t local/gitea .
Sending build context to Docker daemon     15MB
Step 1/13 : FROM alpine:3.6
3.6: Pulling from library/alpine
b56ae66c2937: Pull complete 
Digest: sha256:d6bfc3baf615dc9618209a8d607ba2a8103d9c8a405b3bd8741d88b4bef36478
Status: Downloaded newer image for alpine:3.6
 ---> 053cde6e8953
Step 2/13 : LABEL maintainer "The Gitea Authors"
 ---> Running in ec18f6695127
 ---> f67e9f81a9f9
Removing intermediate container ec18f6695127
Step 3/13 : EXPOSE 22 3000
 ---> Running in d740f84c34f0
 ---> 102f96ff2e65
Removing intermediate container d740f84c34f0
Step 4/13 : RUN apk --no-cache add     su-exec     ca-certificates     sqlite     bash     git     linux-pam     s6     curl     openssh     gettext     tzdata
 ---> Running in 1b21818302ee
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/29) Installing ncurses-terminfo-base (6.0_p20170930-r0)
(2/29) Installing ncurses-terminfo (6.0_p20170930-r0)
(3/29) Installing ncurses-libs (6.0_p20170930-r0)
(4/29) Installing readline (6.3.008-r5)
(5/29) Installing bash (4.3.48-r1)
Executing bash-4.3.48-r1.post-install
(6/29) Installing ca-certificates (20161130-r2)
(7/29) Installing libssh2 (1.8.0-r1)
(8/29) Installing libcurl (7.56.1-r0)
(9/29) Installing curl (7.56.1-r0)
(10/29) Installing libgomp (6.3.0-r4)
(11/29) Installing libintl (0.19.8.1-r1)
(12/29) Installing libunistring (0.9.7-r0)
(13/29) Installing libxml2 (2.9.4-r4)
(14/29) Installing gettext (0.19.8.1-r1)
(15/29) Installing expat (2.2.0-r1)
(16/29) Installing pcre (8.41-r0)
(17/29) Installing git (2.13.5-r0)
(18/29) Installing linux-pam (1.2.1-r1)
(19/29) Installing openssh-keygen (7.5_p1-r1)
(20/29) Installing openssh-client (7.5_p1-r1)
(21/29) Installing openssh-sftp-server (7.5_p1-r1)
(22/29) Installing openssh-server (7.5_p1-r1)
(23/29) Installing openssh (7.5_p1-r1)
(24/29) Installing skalibs (2.5.1.1-r0)
(25/29) Installing execline (2.3.0.1-r0)
(26/29) Installing s6 (2.5.1.0-r0)
(27/29) Installing sqlite (3.20.1-r0)
(28/29) Installing su-exec (0.2-r0)
(29/29) Installing tzdata (2017a-r0)
Executing busybox-1.26.2-r7.trigger
Executing ca-certificates-20161130-r2.trigger
OK: 49 MiB in 40 packages
 ---> 26517c2aa9af
Removing intermediate container 1b21818302ee
Step 5/13 : RUN addgroup     -S -g 1000     git &&   adduser     -S -H -D     -h /data/git     -s /bin/bash     -u 1000     -G git     git &&   echo "git:$(dd if=/dev/urandom bs=24 count=1 status=none | base64)" | chpasswd
 ---> Running in e97561cb693f
1+0 records in
1+0 records out
chpasswd: password for 'git' changed
 ---> d4123d183527
Removing intermediate container e97561cb693f
Step 6/13 : ENV USER git
 ---> Running in 8e0a78bbc008
 ---> 84eb0f82b107
Removing intermediate container 8e0a78bbc008
Step 7/13 : ENV GITEA_CUSTOM /data/gitea
 ---> Running in 2c299797d810
 ---> 90b1664b8a7f
Removing intermediate container 2c299797d810
Step 8/13 : ENV GODEBUG netdns=go
 ---> Running in 5e2f6faa97e3
 ---> 15ef5763fca8
Removing intermediate container 5e2f6faa97e3
Step 9/13 : VOLUME /data
 ---> Running in 4b79bc590b90
 ---> c606c06f143e
Removing intermediate container 4b79bc590b90
Step 10/13 : ENTRYPOINT /usr/bin/entrypoint
 ---> Running in e8f6a3ca81de
 ---> e503121e1631
Removing intermediate container e8f6a3ca81de
Step 11/13 : CMD /bin/s6-svscan /etc/s6
 ---> Running in 65ba636929f9
 ---> cd87d51d7d43
Removing intermediate container 65ba636929f9
Step 12/13 : COPY docker /
 ---> 78d13f0b5ece
Step 13/13 : COPY gitea /app/gitea/gitea
COPY failed: stat /var/lib/docker/tmp/docker-builder306306181/gitea: no such file or directory

~/tmp/gitea 21.38s master          
❯ git --version
git version 2.15.0

~/tmp/gitea master          
❯ docker --version
Docker version 17.09.0-ce, build afdb6d4

~/tmp/gitea master          
❯ git rev-parse --short HEAD
e22be08a

The same thing happens when I try it with v1.2.3. Any suggestions what's wrong?

@lafriks lafriks added the type/question Issue needs no code to be fixed, only a description on how to fix it yourself. label Nov 10, 2017
@na-g
Copy link

na-g commented Nov 12, 2017

I am seeing the same thing. I am building using, Docker version 17.09.0-ce, build afdb6d4.

@na-g
Copy link

na-g commented Nov 12, 2017

@heyarne, it looks like you have to build gitea first. Try make docker.

@sapk
Copy link
Member

sapk commented Nov 15, 2017

@na-g yes first the binary is build via another docker container in make docker the solution is to do multi-stage Dockerfile. This is ready but first need (or more wait) #1985 to be merge to have only one Dockerfile for each platform and next step is multi-stage.

@kfordaccela
Copy link

kfordaccela commented Jan 26, 2018

Love it, I think that I have this resolved now, I was seeing the same thing... considering a .sh file to do the entire make? No, it didn't wanted to do a rPi build refer to issue #531.

@go-gitea go-gitea locked and limited conversation to collaborators Nov 24, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
type/question Issue needs no code to be fixed, only a description on how to fix it yourself.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants