ripe-leather-69437
04/08/2026, 3:35 PMMODELS = ["aaa", "bbb]
for model_name in MODELS:
docker_image(
name=model_name,
extra_build_args=[
"BUILD_NUMBER",
"GIT_COMMIT",
f"MODEL_NAME={model_name}",
"IMAGE_VERSION",
],
image_tags=["{build_args.IMAGE_VERSION}"],
image_labels={
"GIT_COMMIT": "{build_args.GIT_COMMIT}",
"IMAGE_VERSION": "{build_args.IMAGE_VERSION}",
},
source="Dockerfile",
)
target(
name="images",
description="A target that is used to depend on all model docker images",
dependencies=[f":{model_name}" for model_name in MODELS],
)
I have this for loop in my build file and a generic target that allows depending on all of the images.
(would've used parametrize, didn't want to write the common extra_env_vars over and over)
If I depend on the individual docker_image targets, then the docker_info.json file is materialised in the sandbox. If I depend on the generic target :images then I would expect that all of the docker info files would be materialised, but instead, none of them are.
How can I tell whether a dependency will / won't materialise files in the sandbox?happy-kitchen-89482
04/09/2026, 4:42 PMripe-leather-69437
04/10/2026, 7:57 AMruntime_package_dependencies - I have a test suite that runs against each of the built docker images as a kind of smoke test. What I want to be able to do is declare the list of models in one place, but instead I'm having to list each of the images as a runtime package dependency of the test suite:
resource(source="compose.yml", name="docker-compose-config")
python_tests(
name="tests",
dependencies=[
":docker-compose-config",
"src/service/edge/test_data:python",
],
runtime_package_dependencies=[
# I would love to do this:
"src/service/edge:images",
# Instead I have to do this:
"src/service/edge:aaa",
"src/service/edge:bbb",
],
)happy-kitchen-89482
04/12/2026, 11:04 AMhappy-kitchen-89482
04/12/2026, 11:07 AMGenericTargethappy-kitchen-89482
04/12/2026, 11:08 AMripe-leather-69437
04/14/2026, 9:18 AMhappy-kitchen-89482
04/14/2026, 3:51 PM