Skip to content

Commit

Permalink
Merge pull request laradock#401 from dsampaolo/fix-phpunit-path-missing
Browse files Browse the repository at this point in the history
fix laradock#395 adds phpunit path to non-root user's .bashrc
  • Loading branch information
appleboy authored Nov 1, 2016
2 parents 1b05dfd + 470994f commit f6d9ac6
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions workspace/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f6d9ac6

Please sign in to comment.