Created
November 28, 2023 00:07
-
-
Save gwpl/8faa1b314c7d5905dd23ce041d65dc79 to your computer and use it in GitHub Desktop.
Building docker and running custom entrypoint with `pytest` inside for aider
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# https://github.com/paul-gauthier/aider or when working on a patch on fork: | |
docker build --file docker/Dockerfile -t aider-image . | |
# to launch pytest: | |
docker run -it --volume $(pwd):/app --entrypoint /bin/bash aider-image -c "pip install pytest && pytest" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
of course for faster runs I have docker image with already included pytest. However if someone want's just to copy&paste, above line is robust as will install
pytest
in case it's missing.