Last active
September 30, 2020 13:06
-
-
Save jakub-frajt/d12f2b5fd4a6710b4d3fd5551f3775ee to your computer and use it in GitHub Desktop.
Fish shell function that run Composer via Docker container
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function composer --description 'Run Composer via Docker container' | |
docker run --rm -it -v $SSH_AUTH_SOCK:/ssh-auth.sock -v $PWD:/app -e SSH_AUTH_SOCK=/ssh-auth.sock -u (id -u):(id -g) composer $argv; | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
For update Composer run: