Skip to content

Update pre-commit #44

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Conversation

ryantfowler
Copy link

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.

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 phpro/grumphp#618 (comment) . I'm sharing this knowledge back with your project, as reviewing how you got it working helped me out.
Updated a path, to make it simpler.
@danielozano
Copy link
Member

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!

@ryantfowler
Copy link
Author

@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.

@danielozano
Copy link
Member

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 danielozano mentioned this pull request May 3, 2019
Updated the file to retrieve the Docker image id of a given service via docker-compose and updated grumphp command
@ryantfowler
Copy link
Author

@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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants