You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I use this tool with Docker to check our internal libraries if our devs don't add bc breaks. I run it manually on my local machine for larger PRs, not automatically in GH actions.
So I need to modify the command a little bit and maybe someone in the same situation can benefit from that:
docker run --rm -v ~/.composer/auth.json:/composer/auth.json:ro -v ~/.ssh:/root/.ssh:ro -v `pwd`:/app nyholm/roave-bc-check
That mounts the auth.json for composer (private Satis) and SSH keys to the container. It didn't work initially and I had to dig into the image to realize that the composer path is not in /root/.composer (which is the default) but in /composer.
Maybe it can be added to the readme to point users with private packages to the right direction?
Thanks!
The text was updated successfully, but these errors were encountered:
Maybe it can be added to the readme to point users with private packages to the right direction?
I think this should be documented in the docker image: the tool itself assumes a fully functional app as mounted volume, unless it does some trickery that I'm unaware of?
If it started doing more than that (such as running composer install), it would probably be best to link the image docs, instead of expanding scope here.
Ah, I just checked something that I missed as an assumption: roave/backward-compatibility-check does indeed perform composer install in a temporary location (by design).
Therefore nothing to do with Dockerfile, but it is true that docker install must be working according to current user credentials, when using private packages.
I use this tool with Docker to check our internal libraries if our devs don't add bc breaks. I run it manually on my local machine for larger PRs, not automatically in GH actions.
So I need to modify the command a little bit and maybe someone in the same situation can benefit from that:
That mounts the
auth.json
for composer (private Satis) and SSH keys to the container. It didn't work initially and I had to dig into the image to realize that the composer path is not in/root/.composer
(which is the default) but in/composer
.Maybe it can be added to the readme to point users with private packages to the right direction?
Thanks!
The text was updated successfully, but these errors were encountered: