Skip to content
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions hermetic_build/DEVELOPMENT.md
Original file line number Diff line number Diff line change
Expand Up @@ -160,11 +160,13 @@ python hermetic_build/library_generation/cli/entry_point.py generate \
1. Run the following command to build the image from source

```shell
docker build \
DOCKER_BUILDKIT=1 docker build \
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we mention that DOCKER_BUILDKIT=1 is only needed for local development on CloudTop but not needed in CloudBuild?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added a note below.

-f .cloudbuild/library_generation/library_generation.Dockerfile \
-t local:image-tag \
.
```
Please note that the build only works when using the new
[Docker BuildKit](https://docs.docker.com/build/buildkit/) (enabled through the `DOCKER_BUILDKIT` variable).

2. Set the version of gapic-generator-java

Expand All @@ -177,7 +179,7 @@ python hermetic_build/library_generation/cli/entry_point.py generate \
-q)
```

3. Run the image
4. Run the image

```shell
# Assume you want to generate the library in the current working directory
Expand Down
Loading