summaryrefslogtreecommitdiffstats
path: root/docker/blocks/docker_gogs
diff options
context:
space:
mode:
authorcodeskyblue <codeskyblue@gmail.com>2015-08-17 14:32:11 +0800
committercodeskyblue <codeskyblue@gmail.com>2015-08-17 14:32:11 +0800
commit54b8172a2435a5f5044250ff94ccada6263a8e10 (patch)
treec04c8c1e91e8dde2cbc1c6425e462026ce23b296 /docker/blocks/docker_gogs
parent6712aa21fa314e1328dd73c849981e3e0efe9fc5 (diff)
downloadgitea-54b8172a2435a5f5044250ff94ccada6263a8e10.tar.gz
gitea-54b8172a2435a5f5044250ff94ccada6263a8e10.zip
some modify, I need to move my workenv to foreign county, network in china is so slow.
Diffstat (limited to 'docker/blocks/docker_gogs')
-rw-r--r--docker/blocks/docker_gogs/Dockerfile49
1 files changed, 0 insertions, 49 deletions
diff --git a/docker/blocks/docker_gogs/Dockerfile b/docker/blocks/docker_gogs/Dockerfile
deleted file mode 100644
index 1b58fbcf92..0000000000
--- a/docker/blocks/docker_gogs/Dockerfile
+++ /dev/null
@@ -1,49 +0,0 @@
-FROM buildpack-deps:trusty-scm
-
-# This part is taken from the official docker image --------------------
-
-RUN apt-get update && apt-get install -y \
- build-essential --no-install-recommends
-
-ENV GOLANG_VERSION 1.3
-
-RUN curl -sSL https://golang.org/dl/go$GOLANG_VERSION.src.tar.gz \
- | tar -v -C /usr/src -xz
-
-RUN cd /usr/src/go/src && ./make.bash --no-clean 2>&1
-
-ENV PATH /usr/src/go/bin:$PATH
-
-RUN mkdir -p /go/src /go/bin && chmod -R 777 /go
-ENV GOPATH /go
-ENV PATH /go/bin:$PATH
-WORKDIR /go
-
-# ----------------------------------------------------------------------
-
-
-RUN useradd -m git
-
-ENV GOGS_PATH $GOPATH/src/github.com/gogits/gogs
-ENV GOGS_CUSTOM_CONF_PATH $GOGS_PATH/custom/conf
-ENV GOGS_CUSTOM_CONF $GOGS_CUSTOM_CONF_PATH/app.ini
-
-RUN go get -u -d github.com/gogits/gogs
-# WORKDIR $GOGS_PATH
-WORKDIR /go/src/github.com/gogits/gogs
-RUN go build github.com/gogits/gogs
-RUN chown -R git $GOGS_PATH
-
-ADD init_gogs.sh /tmp/
-RUN chown git /tmp/init_gogs.sh
-RUN chmod +x /tmp/init_gogs.sh
-
-USER git
-ENV HOME /home/git
-ENV USER git
-ENV PATH $GOGS_PATH:$PATH
-
-RUN git config --global user.name "GoGS" && git config --global user.email "gogitservice@gmail.com"
-
-ENTRYPOINT ["/tmp/init_gogs.sh"]
-CMD ["gogs", "web"]