Skip to content

Instantly share code, notes, and snippets.

@gwpl
Created November 28, 2023 00:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gwpl/8faa1b314c7d5905dd23ce041d65dc79 to your computer and use it in GitHub Desktop.
Save gwpl/8faa1b314c7d5905dd23ce041d65dc79 to your computer and use it in GitHub Desktop.
Building docker and running custom entrypoint with `pytest` inside for aider
# 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"
@gwpl
Copy link
Author

gwpl commented Nov 28, 2023

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.

@gwpl
Copy link
Author

gwpl commented Nov 28, 2023

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment