Skip to content

Commit 019c369

Browse files
docs(hermetic-build): indicate usage of Docker Buildkit in development guide
1 parent e73740d commit 019c369

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

hermetic_build/DEVELOPMENT.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -160,13 +160,15 @@ python hermetic_build/library_generation/cli/entry_point.py generate \
160160
1. Run the following 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).
168170

169-
2. Set the version of gapic-generator-java
171+
3. Set the version of gapic-generator-java
170172

171173
```shell
172174
LOCAL_GENERATOR_VERSION=$(mvn \
@@ -177,7 +179,7 @@ python hermetic_build/library_generation/cli/entry_point.py generate \
177179
-q)
178180
```
179181

180-
3. Run the image
182+
4. Run the image
181183

182184
```shell
183185
# Assume you want to generate the library in the current working directory

0 commit comments

Comments
 (0)