Configure git email and name in docker

to make it easier to use yadm in the container. Set it in the system
config (i.e. /etc/gitconfig) to avoid getting a clash if one wants to
clone an existing yadm repo that contains a .gitconfig.
This commit is contained in:
Erik Flodin 2020-12-29 19:51:55 +01:00
parent 6fc510f473
commit ec3956c560
No known key found for this signature in database
GPG Key ID: 420A7C865EE3F85F
1 changed files with 4 additions and 0 deletions

View File

@ -61,6 +61,10 @@ ADD /usr/loca
ADD /usr/local/bin/yadm-2.5.0
RUN chmod +x /usr/local/bin/yadm-*
# Configure git to make it easier to test yadm manually
RUN git config --system "" \
&& git config --system "Yadm Test"
# /yadm will be the work directory for all tests
# docker commands should mount the local yadm project as /yadm