From 39b9a0c000152642d11e24e9190a23c6461b875d Mon Sep 17 00:00:00 2001 From: Valentyn Tymofieiev Date: Tue, 24 Feb 2026 16:40:26 -0800 Subject: [PATCH 1/4] Add an instruction for using docker buildx --- .agent/skills/gradle-build/SKILL.md | 23 ++++++++++++++++++++--- 1 file changed, 20 insertions(+), 3 deletions(-) diff --git a/.agent/skills/gradle-build/SKILL.md b/.agent/skills/gradle-build/SKILL.md index a408a263d66d..0456b9051dee 100644 --- a/.agent/skills/gradle-build/SKILL.md +++ b/.agent/skills/gradle-build/SKILL.md @@ -154,12 +154,29 @@ applyJavaNature( ./gradlew :sdks:java:container:java11:docker # Build Python SDK container -./gradlew :sdks:python:container:py39:docker +./gradlew :sdks:python:container:py312:docker -# With custom repository +# Build and push a container into a custom repository ./gradlew :sdks:java:container:java11:docker \ -Pdocker-repository-root=gcr.io/project \ - -Pdocker-tag=custom + -Pdocker-tag=custom \ + -Ppush-containers +``` + +If a `:docker` task produces logs that contain the following: + +```WARNING: No output specified with docker-container driver. +Build result will only remain in the build cache.```, + +then you must use `-PuseDockerBuildx` when running `:docker` tasks +in this environment. For example: + +# Build and push a go container into a custom repository +./gradlew :sdks:go:container:docker \ + -Pdocker-repository-root=gcr.io/project \ + -Pdocker-tag=custom \ + -Ppush-containers \ + -PuseDockerBuildx ``` ## Dependency Management From 46b047984c377079eb0e9b62f2a700720792956a Mon Sep 17 00:00:00 2001 From: Valentyn Tymofieiev Date: Tue, 24 Feb 2026 17:28:41 -0800 Subject: [PATCH 2/4] Also update instructions that containers must be pushed. --- .agent/skills/python-development/SKILL.md | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/.agent/skills/python-development/SKILL.md b/.agent/skills/python-development/SKILL.md index f8c6c030e9a8..ed71bf9acc2b 100644 --- a/.agent/skills/python-development/SKILL.md +++ b/.agent/skills/python-development/SKILL.md @@ -123,12 +123,18 @@ pip install build && python -m build --sdist ./gradlew :sdks:python:bdistPy311linux # For Python 3.11 on Linux ``` -### Build SDK Container +### Build and Push SDK Container Image ```bash -./gradlew :sdks:python:container:py39:docker \ - -Pdocker-repository-root=gcr.io/your-project -Pdocker-tag=custom +./gradlew :sdks:python:container:py311:docker \ + -Pdocker-repository-root=gcr.io/your-project/your-name \ + -Pdocker-tag=custom \ + -Ppush-containers + +# Container image will be pushed to: gcr.io/your-project/your-name/beam_python3.11_sdk:custom ``` +To use this container image, supply it via `--sdk_container_image`. + ## Running Pipelines with Modified Code ```bash From 4cd4198c5bb1d92ce6610f98722887cc185ce7fc Mon Sep 17 00:00:00 2001 From: Valentyn Tymofieiev Date: Tue, 24 Feb 2026 17:32:15 -0800 Subject: [PATCH 3/4] formatting --- .agent/skills/gradle-build/SKILL.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.agent/skills/gradle-build/SKILL.md b/.agent/skills/gradle-build/SKILL.md index 0456b9051dee..47712ab409bc 100644 --- a/.agent/skills/gradle-build/SKILL.md +++ b/.agent/skills/gradle-build/SKILL.md @@ -166,11 +166,13 @@ applyJavaNature( If a `:docker` task produces logs that contain the following: ```WARNING: No output specified with docker-container driver. -Build result will only remain in the build cache.```, +Build result will only remain in the build cache. +```, then you must use `-PuseDockerBuildx` when running `:docker` tasks in this environment. For example: +``` # Build and push a go container into a custom repository ./gradlew :sdks:go:container:docker \ -Pdocker-repository-root=gcr.io/project \ From ac946415a746928cda7625fafdf6cc56deecfda3 Mon Sep 17 00:00:00 2001 From: Valentyn Tymofieiev Date: Tue, 24 Feb 2026 17:33:42 -0800 Subject: [PATCH 4/4] formatting --- .agent/skills/gradle-build/SKILL.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.agent/skills/gradle-build/SKILL.md b/.agent/skills/gradle-build/SKILL.md index 47712ab409bc..8de98f4fb95b 100644 --- a/.agent/skills/gradle-build/SKILL.md +++ b/.agent/skills/gradle-build/SKILL.md @@ -165,9 +165,10 @@ applyJavaNature( If a `:docker` task produces logs that contain the following: -```WARNING: No output specified with docker-container driver. +``` +WARNING: No output specified with docker-container driver. Build result will only remain in the build cache. -```, +``` then you must use `-PuseDockerBuildx` when running `:docker` tasks in this environment. For example: