Instead of just pulling the docker image from the public hub, I’m building my own version of the image provided by your github repository which I just cloned “as is”
Somehow in the build process when the build.sh script is executed, it fails with following error:
(27/27) Installing build-deps (0)
OK: 205 MiB in 60 packages
- mkdir -p /tmp/go/src/github.com/gogits/
- ln -s /app/gogs/build /tmp/go/src/github.com/gogits/gogs
- cd /tmp/go/src/github.com/gogits/gogs
- git config --global http.https://gopkg.in.followRedirects true
- make build TAGS=sqlite cert pam
make: *** No rule to make target ‘build’. Stop.
The command ‘/bin/sh -c ./docker/build-go.sh && ./docker/build.sh && ./docker/finalize.sh’ returned a non-zero code: 2
I’m not a programmer so my apologies if I sound stupid but when I tried looking this up it appears to be some generic error that happens when the version of the compiler is incorrect.
To build the whole Docker image, I use the standard docker version 17.03.1-ce
Running the standard build command: docker build . in the directory that contains the files.
Can you help me figure out what’s wrong?
Obviously, it should be able to build like this because (maybe I’m wrong) you’re using the same source to build your docker images for gogs, right? (and they seem to compile fine)
Why do I want to do this?
I’d like to play around with the container image and trying to build “https” with maybe even “letsencrypt” certs in it.