Hi Everyone, I am trying to setup a new python mon...
# general
r
Hi Everyone, I am trying to setup a new python monorepo with pantsbuild. So far I have been able to setup formatting, linting, dependency pinning, dockerized build, pex and docker image build. So far so good. But I am now struggling to 1. setup container orchestration with pantsbuild: I know pantsbuild isn't a container orchestration tool, but consider the scenerio where I am running one of the containers with pants, but it needs few other containers for db or redis. As of now I had to manually spawn those extra containers using docker-compose files, but is there any pants way of doing things. 2. On a separate note,
--loop
support for file change detection for
run
goal on a
pex_binary
target is not working. For example, if I am running a pex_binary target and I change one of the files that goes to binary, I am expecting the binary to be recompiled with new changes. But its not happening. Please help is it the right expectation? Please explain why or why not. In either case whats the best way to achieve this considering the end goal to develop the projects in a containerized local dev environment.
c
setup container orchestration with pantsbuild
For pytest specifically you can do
runtime_package_dependencies
and
pytest-docker
to spin up containers that tests depend on.
l
@refined-lamp-66835 did you end up trying the above suggestion? I have a very similar setup as you and am at the same point in the monorepo transition.