agreeable-carpet-43488
08/01/2024, 12:18 PMelegant-florist-94385
08/01/2024, 12:30 PMpants package ::
should build everything in one go
2. Use docker compose
to bring up all your containers at once. The docker-compose.yml
file is a place that can hold all your inter-container dependency information like startup order dependencies or mapping common environment variables, etc.
a. This is totally independent of pants, and would just "coincidentally" reference your container images as whatever names you are tagging them with in the pants docker_image
target
b. you would run something like docker compose up
to bring up your stack
3. If needed, you could put the docker compose up <more options, potentially getting very large>
into a shell script, and then coordinate the running of this shell script using a pants shell_command
target.
a. You could use this to assign dependency information on all your container images, etc.
Point 3 is the one I am least sure about, but its what I'm thinking my situation is moving towardsagreeable-carpet-43488
08/01/2024, 12:35 PMelegant-florist-94385
08/01/2024, 12:49 PMpython_sources()
pex_binary(entrypoint="app.py")
docker_image(instructions=[... "COPY app_py.pex" ...])
right?elegant-florist-94385
08/01/2024, 12:50 PMpants package ::
you can try running (in your shell) docker image ls
to see that you have some built imageselegant-florist-94385
08/01/2024, 12:51 PMdocker compose
agreeable-carpet-43488
08/01/2024, 12:53 PMelegant-florist-94385
08/01/2024, 12:55 PMagreeable-carpet-43488
08/01/2024, 12:55 PMagreeable-carpet-43488
08/01/2024, 1:50 PMelegant-florist-94385
08/01/2024, 2:43 PMpowerful-scooter-95162
08/07/2024, 5:03 AM