Skip to content

Commit 0dbd934

Browse files
Merge branch 'master' into patch-1
2 parents c7304ad + 49234a5 commit 0dbd934

4 files changed

Lines changed: 13 additions & 6 deletions

File tree

jib-cli/README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ The CLI tool is powered by [Jib Core](https://github.com/GoogleContainerTools/ji
2828
* [Download a Java Application](#download-a-java-application)
2929
* [Windows: Install with `choco`](#windows-install-with-choco)
3030
* [Build Yourself from Source (for Advanced Users)](#build-yourself-from-source-for-advanced-users)
31+
* [Jib CLI JVM options](#jib-cli-jvm-options)
3132
* [Supported Commands](#supported-commands)
3233
* [Build Command](#build-command)
3334
* [Quickstart](#quickstart)
@@ -88,6 +89,12 @@ $ ./gradlew jib-cli:installDist
8889
$ ./jib-cli/build/install/jib/bin/jib
8990
```
9091

92+
## Jib CLI JVM options
93+
94+
Jib CLI is a Java application built with the [Gradle application plugin](https://docs.gradle.org/current/userguide/application_plugin.html).
95+
To configure JVM options for the Jib CLI process itself, you can use the `JIB_OPTS` or `JAVA_OPTS` environment variables.
96+
This is commonly used to configure settings like a proxy by passing standard Java networking properties, as described in the [proxy configuration FAQ](../docs/faq.md#how-do-i-configure-a-proxy).
97+
9198
## Supported Commands
9299

93100
The Jib CLI supports two commands:

jib-cli/scripts/update_gcs_latest.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ versionString="{\"latest\":\"$1\"}"
2828
destination="gs://jib-versions/jib-cli"
2929

3030
echo $versionString > jib-cli-temp
31-
gsutil cp jib-cli-temp $destination
32-
gsutil acl ch -u allUsers:READ $destination
31+
gcloud storage cp jib-cli-temp $destination
32+
gcloud storage objects update --add-acl-grant=allUsers=READ $destination
3333
rm jib-cli-temp
3434

3535
gcsResult=$(curl https://storage.googleapis.com/jib-versions/jib-cli)

jib-gradle-plugin/scripts/update_gcs_latest.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ versionString="{\"latest\":\"$1\"}"
2828
destination="gs://jib-versions/jib-gradle"
2929

3030
echo $versionString > jib-gradle
31-
gsutil cp jib-gradle $destination
32-
gsutil acl ch -u allUsers:READ $destination
31+
gcloud storage cp jib-gradle $destination
32+
gcloud storage objects update --add-acl-grant=allUsers:READ $destination
3333
rm jib-gradle
3434

3535
gcsResult=$(curl https://storage.googleapis.com/jib-versions/jib-gradle)

jib-maven-plugin/scripts/update_gcs_latest.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ versionString="{\"latest\":\"$1\"}"
2828
destination="gs://jib-versions/jib-maven"
2929

3030
echo $versionString > jib-maven
31-
gsutil cp jib-maven $destination
32-
gsutil acl ch -u allUsers:READ $destination
31+
gcloud storage cp jib-maven $destination
32+
gcloud storage objects update --add-acl-grant=allUsers:READ $destination
3333
rm jib-maven
3434

3535
gcsResult=$(curl https://storage.googleapis.com/jib-versions/jib-maven)

0 commit comments

Comments
 (0)