Using Docker Compose is a marvel, unless you have multiple projects to manage, and they’re not running on the same ports with enormous commands. My first thought was to create a Makefile, but the project already has one! 🤡
How do I then achieve: having local shortcuts running in concise commands? The first step: creating my own Makefile and calling it MyMakefile.
.PHONY: test # pega todos os argumentos da linha de comando após o alvo ARGS = $(wordlist 2,$(words $(MAKECMDGOALS)),$(MAKECMDGOALS)) test: docker-compose exec app pytest project/ --no-migrations $(ARGS) To prevent it from being committed in the project, I added it to my global .
Read More →