You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: bake gapic-generator-java into the hermetic build docker image (#3067)
Makes the gapic-generator-java jar a prepared binary in the Docker image
whose location is now assumed by the scripts. Developers need now to
prepare this well-know location (specified in
`library_generation/DEVELOPMENT.md`.
---------
Co-authored-by: Blake Li <[email protected]>
Co-authored-by: Joe Wang <[email protected]>
RUN mvn install -DskipTests -Dclirr.skip -Dcheckstyle.skip
26
+
RUN cp "/root/.m2/repository/com/google/api/gapic-generator-java/${DOCKER_GAPIC_GENERATOR_VERSION}/gapic-generator-java-${DOCKER_GAPIC_GENERATOR_VERSION}.jar" \
# The script is not executable for non-owners. Here we manually chmod it.
52
+
# TODO(diegomarquezp): remove this line after
53
+
# https://github.com/GoogleCloudPlatform/spring-cloud-gcp/pull/3183 is merged and released.
Although the scripts are designed to be run in a Docker container, you can also
48
-
run them directly. This section explains how to run the entrypoint script
47
+
run them directly.
48
+
This section explains how to run the entrypoint script
49
49
(`library_generation/cli/entry_point.py`).
50
50
51
-
## Installing prerequisites
51
+
## Assumptions made by the scripts
52
+
### The Hermetic Build's well-known folder
53
+
Located in `${HOME}/.library_generation`, this folder is assumed by the scripts
54
+
to contain the generator JAR.
55
+
Please note that this is a recent feature and only this jar is expected to be
56
+
there.
57
+
Developers must make sure this folder is properly configured before running the
58
+
scripts locally.
59
+
Note that this relies on the `HOME` en var which is always defined as per
60
+
[POSIX env var definition](https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap08.html).
52
61
53
-
In order to run the generation scripts directly, there are a few tools we
54
-
need to install beforehand.
62
+
#### Put the gapic-generator-java jar in its well-known location
55
63
56
-
### Install synthtool
64
+
Run `cd sdk-platform-java && mvn install -DskipTests -Dclirr.skip
0 commit comments