-
Notifications
You must be signed in to change notification settings - Fork 225
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
Use relative path with docker docker-compose runner #81
Comments
Hello @AlexeyMatskevich
We suppose runner it's a simple program and does't require a path at all. Can you show your config files? |
Hi @Arkweid thanks, for answer. Lefthook v0.6.3
RUNNING HOOKS GROUP: post-checkout
EXECUTE > 01-bundle-checkinstall
EXECUTE > 02-db-migrate
Starting ohmuritel_postgres_1 ... done
Starting ohmuritel_redis_1 ... done
bash: /home/alexey/RubymineProjects/ohmuritel/.lefthook/post-checkout/02-db-migrate: No such file or directory
EXECUTE > 03-crystalball-update
(SKIP BY BROKEN PIPE)
SUMMARY: (done in 1.11 seconds)
✔️ 01-bundle-checkinstall
🥊 02-db-migrate |
I never used docker-compouse in such way 😅
We have |
Thanks for the clarifications. |
I have a lack of time these days, but if you interesting you can try to make PR for that relative/absolute path problem. Especially now is the Hacktoberfest! |
I have Dockerfile
and my project pwd is
/home/$user/Projects/project
i try to run post-checkout hook from example with docker runner.
I get result
Is it possible to transfer the relative path to the runner instead of absolute?
I tried to create images with copy host pwd
docker build --build-arg APP_DIR=$(pwd)...
it helped me, but this is a bad hack.Hard-Coded path in container also not an option.
Thank you for your attention.
The text was updated successfully, but these errors were encountered: