average-spring-99862
12/15/2021, 10:18 AMgunicorn
and celery
or otherwise.
• Install pip packages such as psycopg2
that require C libraries.
• Still be able to get inside the container and run Django management commands when required.happy-kitchen-89482
12/15/2021, 2:07 PM./pants package
the image, it will automatically rebuild the binary as needed.
• Pants delegates to Pip (via Pex), and should install psycopg2 without difficulty. We use that package internally, for example.
• @curved-television-6568 are we able to ./pants run
a docker container with custom args?curved-television-6568
12/15/2021, 2:25 PMare we able toYes,a docker container with custom args?./pants run
./pants run <target | Dockerfile> — args..
will pass args…
to the container entrypoint. Where as, for custom arg for the docker run
command is pending https://github.com/pantsbuild/pants/pull/13818happy-kitchen-89482
12/15/2021, 8:26 PMhappy-kitchen-89482
12/15/2021, 8:26 PM./pants run
doesn't keep that container alive after it exits? Or does it?curved-television-6568
12/15/2021, 9:09 PM--docker-run-args
support (in the pending PR #13818) you could, with: ./pants run --docker-run-args="--detach" …
daemonize the container so it stays alive after pants exits.polite-garden-50641
12/16/2021, 12:14 AMbusy-vase-39202
12/17/2021, 1:35 AM