]> source.dussan.org Git - gitea.git/commitdiff
Set user.name & user.email in Dockerfile
authoreuank <euank@euank.com>
Sun, 28 Dec 2014 03:10:33 +0000 (19:10 -0800)
committereuank <euank@euank.com>
Sun, 28 Dec 2014 03:10:33 +0000 (19:10 -0800)
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.

docker/blocks/docker_gogs/Dockerfile
docker/blocks/docker_gogs_dev/Dockerfile

index e2e056ae02e4e326e5304f1d2bd725f5b89acd60..2c98cc5011719100bfb8881ec99521486f219959 100644 (file)
@@ -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"]
index d1b96bf4a241fa09d58157aa3d0d934a1a698028..2a628c2d5ef07fea6e9ab722ab2ea05c326b6ca2 100644 (file)
@@ -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"]