Created
October 3, 2017 08:52
-
-
Save oliverlundquist/8315aca434bd30bb46b0beebdeffc90d to your computer and use it in GitHub Desktop.
Composer in Docker
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
# Create auth.json file | |
# mkdir -p ~/.composer && \ | |
# echo '{}' > ~/.composer/auth.json && \ | |
# docker run -it --rm -v ~/.composer/auth.json:/tmp/auth.json composer config -g github-oauth.github.com mysecrettoken && \ | |
# chmod 600 ~/.composer/auth.json | |
# Run with auth.json | |
# alias composer='docker pull composer:latest && docker run -it --rm -v $PWD:/app -v ~/.composer/auth.json:/root/.composer/auth.json composer' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment