Skip to content

Commit 946ca33

Browse files
authored
Update Cloud Run mvn command in Cloud SQL sample READMEs to address build error. (GoogleCloudPlatform#5725)
Fixes GoogleCloudPlatform#5724
1 parent 0ba7c0f commit 946ca33

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

cloud-sql/mysql/servlet/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,8 @@ for more details on connecting a Cloud Run service to Cloud SQL.
7373
1. Build the container image using [Jib](https://cloud.google.com/java/getting-started/jib):
7474

7575
```sh
76-
mvn compile com.google.cloud.tools:jib-maven-plugin:2.7.0:build \
77-
-Dimage=gcr.io/[YOUR_PROJECT_ID]/run-mysql
76+
mvn clean package com.google.cloud.tools:jib-maven-plugin:2.8.0:build \
77+
-Dimage=gcr.io/[YOUR_PROJECT_ID]/run-mysql -DskipTests
7878
```
7979

8080
2. Deploy the service to Cloud Run:

cloud-sql/postgres/servlet/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,8 @@ for more details on connecting a Cloud Run service to Cloud SQL.
7373
1. Build the container image using [Jib](https://cloud.google.com/java/getting-started/jib):
7474

7575
```sh
76-
mvn compile com.google.cloud.tools:jib-maven-plugin:2.7.0:build \
77-
-Dimage=gcr.io/[YOUR_PROJECT_ID]/run-postgres
76+
mvn clean package com.google.cloud.tools:jib-maven-plugin:2.8.0:build \
77+
-Dimage=gcr.io/[YOUR_PROJECT_ID]/run-postgres -DskipTests
7878
```
7979

8080
2. Deploy the service to Cloud Run:

cloud-sql/r2dbc/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,8 @@ for more details on connecting a Cloud Run service to Cloud SQL.
7676
1. Build the container image and push it to Google Container Registry (GCR):
7777

7878
```sh
79-
mvn compile com.google.cloud.tools:jib-maven-plugin:2.5.2:build \
80-
-Dimage=gcr.io/$PROJECT_ID/r2dbc-sample
79+
mvn clean package com.google.cloud.tools:jib-maven-plugin:2.8.0:build \
80+
-Dimage=gcr.io/[YOUR_PROJECT_ID]/r2dbc-sample -DskipTests
8181
```
8282

8383
1. Deploy the service to Cloud Run:

cloud-sql/sqlserver/servlet/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,8 @@ for more details on connecting a Cloud Run service to Cloud SQL.
7777
1. Build the container image using [Jib](https://cloud.google.com/java/getting-started/jib):
7878

7979
```sh
80-
mvn compile com.google.cloud.tools:jib-maven-plugin:2.7.0:build \
81-
-Dimage=gcr.io/[YOUR_PROJECT_ID]/run-sqlserver
80+
mvn clean package com.google.cloud.tools:jib-maven-plugin:2.8.0:build \
81+
-Dimage=gcr.io/[YOUR_PROJECT_ID]/run-sqlserver -DskipTests
8282
```
8383

8484
2. Deploy the service to Cloud Run:

0 commit comments

Comments
 (0)