From: Arpit Jalan Date: Tue, 29 Jan 2019 10:43:25 +0000 (+0530) Subject: Configure Git for `discourse` user X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=737e65344795e592ca053908269819b93804720d;p=discourse_docker.git Configure Git for `discourse` user --- diff --git a/image/discourse_bench/Dockerfile b/image/discourse_bench/Dockerfile index 16250da..432b59d 100644 --- a/image/discourse_bench/Dockerfile +++ b/image/discourse_bench/Dockerfile @@ -7,6 +7,10 @@ FROM discourse/discourse_test:1.4.0 # Install ApacheBench RUN apt-get install -y apache2-utils libsqlite3-dev +# configure Git to suppress warnings +RUN git config --global user.email "you@example.com" &&\ + git config --global user.name "Your Name" + RUN git pull &&\ sudo -u discourse bundle install --standalone diff --git a/image/discourse_test/Dockerfile b/image/discourse_test/Dockerfile index 6cc2b84..93777ac 100644 --- a/image/discourse_test/Dockerfile +++ b/image/discourse_test/Dockerfile @@ -6,8 +6,8 @@ FROM discourse/base:$tag MAINTAINER Sam Saffron "https://twitter.com/samsaffron" # configure Git to suppress warnings -RUN git config --global user.email "you@example.com" &&\ - git config --global user.name "Your Name" +RUN sudo -E -u discourse -H git config --global user.email "you@example.com" &&\ + sudo -E -u discourse -H git config --global user.name "Your Name" RUN gem update bundler --force &&\ cd /var/www/discourse &&\