Dockerfile 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. FROM buildpack-deps:trusty-scm
  2. # This part is taken from the official docker image --------------------
  3. RUN apt-get update && apt-get install -y \
  4. build-essential --no-install-recommends
  5. ENV GOLANG_VERSION 1.3
  6. RUN curl -sSL https://golang.org/dl/go$GOLANG_VERSION.src.tar.gz \
  7. | tar -v -C /usr/src -xz
  8. RUN cd /usr/src/go/src && ./make.bash --no-clean 2>&1
  9. ENV PATH /usr/src/go/bin:$PATH
  10. RUN mkdir -p /go/src /go/bin && chmod -R 777 /go
  11. ENV GOPATH /go
  12. ENV PATH /go/bin:$PATH
  13. WORKDIR /go
  14. # ----------------------------------------------------------------------
  15. RUN useradd -m git
  16. ENV GOGS_PATH $GOPATH/src/github.com/gogits/gogs
  17. ENV GOGS_CUSTOM_CONF_PATH $GOGS_PATH/custom/conf
  18. ENV GOGS_CUSTOM_CONF $GOGS_CUSTOM_CONF_PATH/app.ini
  19. RUN git clone -b dev https://github.com/gogits/gogs.git $GOGS_PATH
  20. # WORKDIR $GOGS_PATH
  21. WORKDIR /go/src/github.com/gogits/gogs
  22. RUN go get -d && go build
  23. RUN chown -R git $GOGS_PATH
  24. ADD init_gogs.sh /tmp/
  25. RUN chown git /tmp/init_gogs.sh
  26. RUN chmod +x /tmp/init_gogs.sh
  27. USER git
  28. ENV HOME /home/git
  29. ENV USER git
  30. ENV PATH $GOGS_PATH:$PATH
  31. RUN git config --global user.name "GoGS" && git config --global user.email "gogitservice@gmail.com"
  32. ENTRYPOINT ["/tmp/init_gogs.sh"]
  33. CMD ["gogs", "web"]
PANIC: session(release): write data/sessions/6/e/6e6eddf5c2cf85a9: no space left on device

PANIC

session(release): write data/sessions/6/e/6e6eddf5c2cf85a9: no space left on device
github.com/go-macaron/session@v0.0.0-20190805070824-1a3cdc6f5659/session.go:199 (0x8b2934)
gopkg.in/macaron.v1@v1.3.9/context.go:79 (0x83d0a0)
github.com/go-macaron/inject@v0.0.0-20160627170012-d8a0b8677191/inject.go:157 (0x80ab07)
github.com/go-macaron/inject@v0.0.0-20160627170012-d8a0b8677191/inject.go:135 (0x80a8a8)
gopkg.in/macaron.v1@v1.3.9/context.go:121 (0x83d1f8)
gopkg.in/macaron.v1@v1.3.9/context.go:112 (0x84fdb5)
gopkg.in/macaron.v1@v1.3.9/recovery.go:161 (0x84fda8)
gopkg.in/macaron.v1@v1.3.9/logger.go:40 (0x840c73)
github.com/go-macaron/inject@v0.0.0-20160627170012-d8a0b8677191/inject.go:157 (0x80ab07)
github.com/go-macaron/inject@v0.0.0-20160627170012-d8a0b8677191/inject.go:135 (0x80a8a8)
gopkg.in/macaron.v1@v1.3.9/context.go:121 (0x83d1f8)
gopkg.in/macaron.v1@v1.3.9/router.go:187 (0x850fc6)
gopkg.in/macaron.v1@v1.3.9/router.go:303 (0x8493e5)
gopkg.in/macaron.v1@v1.3.9/macaron.go:220 (0x841fca)
net/http/server.go:2836 (0x7a79b2)
net/http/server.go:1924 (0x7a341b)
runtime/asm_amd64.s:1373 (0x46f9f0)