diff options
author | euank <euank@euank.com> | 2014-12-27 19:10:33 -0800 |
---|---|---|
committer | euank <euank@euank.com> | 2014-12-27 19:10:33 -0800 |
commit | f059866a2171c26c90447bf43ee6e4e03f58ecec (patch) | |
tree | 69bc8fd5ffed7d3837b404e3cf0749bedd57f344 /docker | |
parent | 234a7c19a4a59632dadaf430ab2431dccc0d74a9 (diff) | |
download | gitea-f059866a2171c26c90447bf43ee6e4e03f58ecec.tar.gz gitea-f059866a2171c26c90447bf43ee6e4e03f58ecec.zip |
Set user.name & user.email in Dockerfile
The previous setting would cause all repo creations to fail, as
described in issue #328.
The previous commit also resolves this issue, but it seems saner to
create the user in the Dockerfile than at runtime.
Diffstat (limited to 'docker')
-rw-r--r-- | docker/blocks/docker_gogs/Dockerfile | 2 | ||||
-rw-r--r-- | docker/blocks/docker_gogs_dev/Dockerfile | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/docker/blocks/docker_gogs/Dockerfile b/docker/blocks/docker_gogs/Dockerfile index e2e056ae02..2c98cc5011 100644 --- a/docker/blocks/docker_gogs/Dockerfile +++ b/docker/blocks/docker_gogs/Dockerfile @@ -46,7 +46,7 @@ ENV HOME /home/git ENV USER git ENV PATH $GOGS_PATH:$PATH -RUN git config --global user.name "GoGS" +RUN git config --global user.name "GoGS" && git config --global user.email "gogitservice@gmail.com" ENTRYPOINT ["/tmp/init_gogs.sh"] CMD ["gogs", "web"] diff --git a/docker/blocks/docker_gogs_dev/Dockerfile b/docker/blocks/docker_gogs_dev/Dockerfile index d1b96bf4a2..2a628c2d5e 100644 --- a/docker/blocks/docker_gogs_dev/Dockerfile +++ b/docker/blocks/docker_gogs_dev/Dockerfile @@ -47,7 +47,7 @@ ENV HOME /home/git ENV USER git ENV PATH $GOGS_PATH:$PATH -RUN git config --global user.name "GoGS" +RUN git config --global user.name "GoGS" && git config --global user.email "gogitservice@gmail.com" ENTRYPOINT ["/tmp/init_gogs.sh"] CMD ["gogs", "web"] |