From 445060499eb6406fe048f414431dba9339fae2b3 Mon Sep 17 00:00:00 2001 From: Tao Wang Date: Thu, 20 Jul 2017 05:08:08 +1000 Subject: [PATCH 1/2] Add missing path in the Docker app.ini template Signed-off-by: Tao Wang --- docker/etc/templates/app.ini | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/docker/etc/templates/app.ini b/docker/etc/templates/app.ini index 9e0a3dd5c8766..589271b4a0e41 100644 --- a/docker/etc/templates/app.ini +++ b/docker/etc/templates/app.ini @@ -4,6 +4,9 @@ RUN_MODE = $RUN_MODE [repository] ROOT = /data/git/repositories +[repository.local] +LOCAL_COPY_PATH = /data/gitea/tmp/local-repo + [repository.upload] TEMP_PATH = /data/gitea/uploads @@ -14,6 +17,7 @@ HTTP_PORT = $HTTP_PORT ROOT_URL = $ROOT_URL DISABLE_SSH = $DISABLE_SSH SSH_PORT = $SSH_PORT +LFS_CONTENT_PATH = /data/git/lfs [database] PATH = /data/gitea/gitea.db @@ -23,6 +27,9 @@ NAME = $DB_NAME USER = $DB_USER PASSWD = $DB_PASSWD +[indexer] +ISSUE_INDEXER_PATH = /data/gitea/indexers/issues.bleve + [session] PROVIDER_CONFIG = /data/gitea/sessions From 3c21401b5cea924cbdcc1b607ea4a3ca3b032d0f Mon Sep 17 00:00:00 2001 From: Tao Wang Date: Sat, 22 Jul 2017 21:06:37 +1000 Subject: [PATCH 2/2] Move the gitea binary to `/usr/local/bin/` in Docker image Signed-off-by: Tao Wang --- Dockerfile | 1 + 1 file changed, 1 insertion(+) diff --git a/Dockerfile b/Dockerfile index 8e3516418bd3a..eb790491c446c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -58,3 +58,4 @@ CMD ["/bin/s6-svscan", "/etc/s6"] COPY docker / COPY --from=build-env /go/src/code.gitea.io/gitea/gitea /app/gitea/gitea +RUN ln -s /usr/local/bin/gitea /app/gitea/gitea