From 470994fc236046f52c2db27ee79e14d4b94893fc Mon Sep 17 00:00:00 2001 From: Didier Sampaolo Date: Tue, 1 Nov 2016 07:19:58 +0100 Subject: [PATCH] fix #395 adds phpunit path to non-root user's .bashrc --- workspace/Dockerfile | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/workspace/Dockerfile b/workspace/Dockerfile index 1bbb606..d833152 100644 --- a/workspace/Dockerfile +++ b/workspace/Dockerfile @@ -234,6 +234,16 @@ RUN if [ ${INSTALL_AEROSPIKE_EXTENSION} = false ]; then \ rm /etc/php/7.0/cli/conf.d/aerospike.ini \ ;fi +##################################### +# Non-root user : PHPUnit path +##################################### + +# add ./vendor/bin to non-root user's bashrc (needed for phpunit) +USER laradock + +RUN echo "" >> ~/.bashrc && \ + echo 'export PATH="/var/www/vendor/bin:$PATH"' >> ~/.bashrc + # #-------------------------------------------------------------------------- # Final Touch