path = github.com/gogits/gogs
[deps]
-github.com/Unknwon/cae = `commit:a1fa53b`
-github.com/Unknwon/com = `commit:019c36f`
-github.com/Unknwon/goconfig = `commit:c4e325f`
-github.com/codegangsta/cli = `commit:bb91895`
-github.com/go-martini/martini = `commit:49411a5`
-github.com/go-sql-driver/mysql = `commit:b44cac6`
-github.com/go-xorm/core = `commit:267e375`
-github.com/go-xorm/xorm = `commit:bd1487b`
-github.com/gogits/cache = `commit:f9bb61f`
-github.com/gogits/gfm = `commit:40f747a`
-github.com/gogits/git = `commit:3d9e771`
-github.com/gogits/logs = `commit:0a97a46`
-github.com/gogits/oauth2 = `commit:99cbec8`
-github.com/gogits/session = `commit:7ab78d4`
-github.com/juju2013/goldap = `commit:f4a7f67`
-github.com/lib/pq = `commit:529edd9`
-github.com/nfnt/resize = `commit:8aee0d9`
++code.google.com/p/mahonia =
+github.com/Unknwon/cae =
+github.com/Unknwon/com =
+github.com/Unknwon/goconfig =
+github.com/Unknwon/i18n =
+github.com/Unknwon/macaron =
+github.com/codegangsta/cli =
+github.com/go-sql-driver/mysql =
+github.com/go-xorm/core =
+github.com/go-xorm/xorm =
+github.com/gogits/gfm =
+github.com/gogits/git =
+github.com/gogits/oauth2 =
+github.com/juju2013/goldap =
+github.com/lib/pq =
+github.com/macaron-contrib/cache =
+github.com/macaron-contrib/captcha =
+github.com/macaron-contrib/csrf =
+github.com/macaron-contrib/i18n =
- github.com/macaron-contrib/session =
++github.com/macaron-contrib/session =
+github.com/macaron-contrib/toolbox =
+github.com/nfnt/resize =
++github.com/saintfish/chardet =
[res]
-include = templates|public
+include = conf|etc|public|scripts|templates
--- /dev/null
- # Clean all the unused packages
- RUN apt-get autoremove -y
- RUN apt-get clean all
+FROM stackbrew/ubuntu:13.10
+MAINTAINER Meaglith Ma <genedna@gmail.com> (@genedna)
+
+#aliyun#RUN echo "deb http://mirrors.aliyun.com/ubuntu/ saucy main restricted" > /etc/apt/sources.list && echo "deb http://mirrors.aliyun.com/ubuntu/ saucy-updates main restricted" >> /etc/apt/sources.list && echo "deb http://mirrors.aliyun.com/ubuntu/ saucy universe" >> /etc/apt/sources.list && echo "deb http://mirrors.aliyun.com/ubuntu/ saucy-updates universe" >> /etc/apt/sources.list && echo "deb http://mirrors.aliyun.com/ubuntu/ saucy multiverse" >> /etc/apt/sources.list && echo "deb http://mirrors.aliyun.com/ubuntu/ saucy-updates multiverse" >> /etc/apt/sources.list && echo "deb http://mirrors.aliyun.com/ubuntu/ saucy-backports main restricted universe multiverse" >> /etc/apt/sources.list && echo "deb http://mirrors.aliyun.com/ubuntu/ saucy-security main restricted" >> /etc/apt/sources.list && echo "deb http://mirrors.aliyun.com/ubuntu/ saucy-security universe" >> /etc/apt/sources.list && echo "deb http://mirrors.aliyun.com/ubuntu/ saucy-security multiverse" >> /etc/apt/sources.list
+
+#nchc#RUN echo "deb http://free.nchc.org.tw/ubuntu/ saucy main restricted" >> /etc/apt/source.list && echo "deb-src http://free.nchc.org.tw/ubuntu/ saucy main restricted" >> /etc/apt/source.list && echo "deb http://free.nchc.org.tw/ubuntu/ saucy-updates main restricted" >> /etc/apt/source.list && echo "deb-src http://free.nchc.org.tw/ubuntu/ saucy-updates main restricted" >> /etc/apt/source.list && echo "deb http://free.nchc.org.tw/ubuntu/ saucy universe" >> /etc/apt/source.list && echo "deb-src http://free.nchc.org.tw/ubuntu/ saucy universe" >> /etc/apt/source.list && echo "deb http://free.nchc.org.tw/ubuntu/ saucy-updates universe" >> /etc/apt/source.list && echo "deb-src http://free.nchc.org.tw/ubuntu/ saucy-updates universe" >> /etc/apt/source.list && echo "deb http://free.nchc.org.tw/ubuntu/ saucy multiverse" >> /etc/apt/source.list && echo "deb-src http://free.nchc.org.tw/ubuntu/ saucy multiverse" >> /etc/apt/source.list && echo "deb http://free.nchc.org.tw/ubuntu/ saucy-updates multiverse" >> /etc/apt/source.list && echo "deb-src http://free.nchc.org.tw/ubuntu/ saucy-updates multiverse" >> /etc/apt/source.list && echo "deb http://free.nchc.org.tw/ubuntu/ saucy-backports main restricted universe multiverse" >> /etc/apt/source.list && echo "deb-src http://free.nchc.org.tw/ubuntu/ saucy-backports main restricted universe multiverse" >> /etc/apt/source.list && echo "deb http://free.nchc.org.tw/ubuntu/ saucy-security main restricted" >> /etc/apt/source.list && echo "deb-src http://free.nchc.org.tw/ubuntu/ saucy-security main restricted" >> /etc/apt/source.list && echo "deb http://free.nchc.org.tw/ubuntu/ saucy-security universe" >> /etc/apt/source.list && echo "deb-src http://free.nchc.org.tw/ubuntu/ saucy-security universe" >> /etc/apt/source.list && echo "deb http://free.nchc.org.tw/ubuntu/ saucy-security multiverse" >> /etc/apt/source.list && echo "deb-src http://free.nchc.org.tw/ubuntu/ saucy-security multiverse" >> /etc/apt/source.list && echo "deb http://extras.ubuntu.com/ubuntu saucy main" >> /etc/apt/source.list && echo "deb-src http://extras.ubuntu.com/ubuntu saucy main" >> /etc/apt/source.list
+
+RUN mkdir -p /go
+ENV PATH /usr/local/go/bin:/go/bin:$PATH
+ENV GOROOT /usr/local/go
+ENV GOPATH /go
+
+RUN apt-get update && apt-get install --yes --force-yes curl git mercurial zip wget ca-certificates build-essential
+RUN apt-get install -yq vim sudo
+
+RUN curl -sL https://golang.org/dl/go1.3.linux-amd64.tar.gz | tar -v -C /usr/local -xz
+RUN cd /usr/local/go/src && ./make.bash --no-clean 2>&1
+
+RUN go get -u -d github.com/gogits/gogs
+RUN cd $GOPATH/src/github.com/gogits/gogs && git checkout dev && git pull origin dev && go install && go build -tags redis
+
+
+# Add the deploy script to the docker image and assign execution permission to it.
+ADD ./deploy.sh /
+RUN chmod +x deploy.sh
+
+EXPOSE 3000
+
+CMD /deploy.sh