-
-
Notifications
You must be signed in to change notification settings - Fork 226
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
Support docker compose plugin to justfile #1149
Comments
I think we may need to test if the system has a |
A temporary workaround could be to add an alias to bash |
This is a common problem, that will still remain some years, until
..and then use the alias |
The "bash-script" approach in my comment above does not really work direct in a
There is a |
This should solve #1149. See also [my comment there for the approach](#11). In short through a variable that is substituted. Note that this may not work if an older Docker version is installed without the Python `docker-compose` script...As both variants will not be present. Maybe add an extra test+warning msg for that case. ``` dockercompose := `if docker-compose --version &> /dev/null; then echo "docker-compose"; else echo "docker compose"; fi` . . up: {{ dockercompose }} up up-build: {{ dockercompose }} up --build . . ``` --------- Co-authored-by: Lucas <[email protected]>
The Docker compose plugin way:
The Docker compose standalone way:
Is there one way to support them both? I tried many in justfile but all failed.
The text was updated successfully, but these errors were encountered: