This is an automated email from the ASF dual-hosted git repository.

tvalentyn pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/beam.git


The following commit(s) were added to refs/heads/master by this push:
     new e755b53b5a5 Add an instruction for using Docker buildx when building 
containers. (#37706)
e755b53b5a5 is described below

commit e755b53b5a5f6f1254d7a657d6d61f6c035c5438
Author: tvalentyn <[email protected]>
AuthorDate: Wed Feb 25 09:02:16 2026 -0800

    Add an instruction for using Docker buildx when building containers. 
(#37706)
    
    * Add an instruction for using docker buildx
    
    * Also update instructions that containers must be pushed.
    
    * formatting
    
    * formatting
---
 .agent/skills/gradle-build/SKILL.md       | 26 +++++++++++++++++++++++---
 .agent/skills/python-development/SKILL.md | 12 +++++++++---
 2 files changed, 32 insertions(+), 6 deletions(-)

diff --git a/.agent/skills/gradle-build/SKILL.md 
b/.agent/skills/gradle-build/SKILL.md
index a408a263d66..8de98f4fb95 100644
--- a/.agent/skills/gradle-build/SKILL.md
+++ b/.agent/skills/gradle-build/SKILL.md
@@ -154,12 +154,32 @@ 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
diff --git a/.agent/skills/python-development/SKILL.md 
b/.agent/skills/python-development/SKILL.md
index f8c6c030e9a..ed71bf9acc2 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

Reply via email to