magento2-dockergento icon indicating copy to clipboard operation
magento2-dockergento copied to clipboard

Update pre-commit

Open ryantfowler opened this issue 6 years ago • 4 comments
trafficstars

I've provided a simpler approach to running grumphp inside a docker container. I've provided details to the project itself, for others to see here . I'm sharing this knowledge back with your project, as reviewing how you got it working helped me out.

ryantfowler avatar Apr 14 '19 15:04 ryantfowler

Hi @ryantfowler Thanks a lot for your PR. Have you tried it when commiting a large bunch of files? I'll give it a try, but I don't remember if we've already tried a similar approach and had issues when the diff was too large. Thanks a lot!

danielozano avatar Apr 18 '19 14:04 danielozano

@danielozano I've only been working with this approach in the context of normal development. I'd say the largest set of files would be an initial theme commit. Hopefully that helps.

ryantfowler avatar Apr 23 '19 02:04 ryantfowler

Sorry @ryantfowler when I try to commit for testing, I just get an error like this one:

docker: Error: No such image: 62a2c063b218ae30c8f8656487771e158671b5d5390791ac578341649d9eb662.
See 'docker run --help'.

And when I debug I see this sentence being executed:

exec docker run --rm -t --volume=/magento/host-root-dir/:./ 62a2c063b218ae30c8f8656487771e158671b5d5390791ac578341649d9eb662 vendor/bin/grumphp './bin/grumphp git:pre-commit' --skip-success-output

So docker run [IMAGE] expects an image identifier, but will not work with a container id docker run CONTAINER_ID

Thank you!

danielozano avatar May 03 '19 23:05 danielozano

@danielozano my mistake. I've updated the PR. On a side note, if this gets merged in, then Grumphp will officially support this and you could consider leveraging that.

ryantfowler avatar May 05 '19 17:05 ryantfowler