8000 Merge branch 'main' into grpc-channel-using-s2a · rmehta19/sdk-platform-java@cb5768f · GitHub
[go: up one dir, main page]

Skip to content

Commit cb5768f

Browse files
committed
Merge branch 'main' into grpc-channel-using-s2a
2 parents 2f70bf8 + 01e742d commit cb5768f

File tree

3 files changed

+10
-4
lines changed

3 files changed

+10
-4
lines changed

.cloudbuild/library_generation/cloudbuild-library-generation-push-prod.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
timeout: 7200s # 2 hours
1616
substitutions:
1717
_IMAGE_NAME: "us-docker.pkg.dev/java-hermetic-build-prod/private-resources/java-library-generation"
18-
_GAPIC_GENERATOR_JAVA_VERSION: '2.46.2-SNAPSHOT' # {x-version-update:gapic-generator-java:current}
18+
_GAPIC_GENERATOR_JAVA_VERSION: '2.49.1-SNAPSHOT' # {x-version-update:gapic-generator-java:current}
1919
_SHA_IMAGE_ID: "${_IMAGE_NAME}:${COMMIT_SHA}"
2020
_LATEST_IMAGE_ID: "${_IMAGE_NAME}:latest"
2121
_VERSIONED_IMAGE_ID: "${_IMAGE_NAME}:${_GAPIC_GENERATOR_JAVA_VERSION}"

hermetic_build/DEVELOPMENT.md

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -160,13 +160,18 @@ python hermetic_build/library_generation/cli/entry_point.py generate \
160160
1. Run the follow 8000 ing command to build the image from source
161161

162162
```shell
163-
docker build \
163+
DOCKER_BUILDKIT=1 docker build \
164164
-f .cloudbuild/library_generation/library_generation.Dockerfile \
165165
-t local:image-tag \
166166
.
167167
```
168+
Please note that the build only works when using the new
169+
[Docker BuildKit](https://docs.docker.com/build/buildkit/) (enabled through the `DOCKER_BUILDKIT` variable).
170+
This is meant for local development only (in CloudTops) - GH Actions' Ubuntu-22.04 \
171+
[comes with the latest Docker version](https://github.com/actions/runner-images/blob/e74605cd6d5407469cf224802f25057bafc23d70/images/ubuntu/Ubuntu2204-Readme.md?plain=1#L81-L83)
172+
and is able to handle the build properly using the (updated) legacy builder.
168173

169-
2. Set the version of gapic-generator-java
174+
3. Set the version of gapic-generator-java
170175

171176
```shell
172177
LOCAL_GENERATOR_VERSION=$(mvn \
@@ -177,7 +182,7 @@ python hermetic_build/library_generation/cli/entry_point.py generate \
177182
-q)
178183
```
179184

180-
3. Run the image
185+
4. Run the image
181186

182187
```shell
183188
# Assume you want to generate the library in the current working directory

release-please-config.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
".cloudbuild/graalvm/cloudbuild-test-a.yaml",
1212
".cloudbuild/graalvm/cloudbuild-test-b.yaml",
1313
".cloudbuild/library_generation/cloudbuild-library-generation-push.yaml",
14+
".cloudbuild/library_generation/cloudbuild-library-generation-push-prod.yaml",
1415
".cloudbuild/library_generation/library_generation.Dockerfile"
1516
]
1617
}

0 commit comments

Comments
 (0)
0