From adbbfba7c3c7de651dae3e9507368685d369d89d Mon Sep 17 00:00:00 2001 From: Girish Ramakrishnan Date: Tue, 23 Jun 2015 10:51:55 -0700 Subject: [PATCH] cloudron build does not use sqlite --- Dockerfile | 6 +++--- start.sh | 2 ++ 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 800e0a7..4b18b79 100644 --- a/Dockerfile +++ b/Dockerfile @@ -7,15 +7,15 @@ RUN apt-get update && \ ADD supervisor/ /etc/supervisor/conf.d/ ENV GOPATH /home/cloudron -RUN mkdir -p /home/cloudron/gogs/log +RUN mkdir -p /home/cloudron/gogs/ ## TODO: use redis as well RUN mkdir -p ${GOPATH}/src/github.com/gogits && \ cd ${GOPATH}/src/github.com/gogits && \ git clone https://github.com/cloudron-io/gogs.git && \ cd gogs && \ - go get -u -tags "sqlite" && \ - go build -tags "sqlite" && \ + go get ./... && \ + go build && \ go install && \ mv ${GOPATH}/bin/gogs /home/cloudron/gogs/ diff --git a/start.sh b/start.sh index 14e1aa0..1b7a555 100755 --- a/start.sh +++ b/start.sh @@ -5,6 +5,8 @@ set -eu -o pipefail fqdn=$(hostname -f) chown -R cloudron.cloudron /app/data +mkdir -p /home/cloudron/gogs/log +chown cloudron:cloudron /home/cloudron/gogs/log # Dockerfile changes the ownership of this file to make it writable by cloudron user sed -e "s/^Port .*/Port ${SSH_PORT}/" \