PHP composer docker container that allows ssh on windows Uses hirak/prestissimo under the hood for that parallel goodness
As discussed Volume Mounting SSH Keys into a Docker Container
Windows disgregards the file permissions so you can't just map your ssh folder as a volume an expect it to work.
(With ConEmu bash you need the / before $(pwd))
docker run --rm -v /$(pwd):/app -v C:/Users/your_user/.ssh:/tmp/.ssh commadore/composer
I'd also recommend making a volume for cache too
docker run --rm --volume C:/composer_cache:/root/composer/ -v /$(pwd):/app -v C:/Users/your_user/.ssh:/tmp/.ssh commadore/composer
I also alias mine in my .bashrc
alias composer='docker run --rm --volume C:/composer_cache:/root/composer/ -v /$(pwd):/app -v C:/Users/your_user/.ssh:/tmp/.ssh commadore/composer '
Then I can just use
composer update
YMMV
Content type
Image
Digest
Size
148 MB
Last updated
about 5 years ago
docker pull commadore/composer