From 7c11592f748e9c69e26f4674184042017e0cba69 Mon Sep 17 00:00:00 2001 From: Glenn Renfro Date: Thu, 6 Jan 2022 13:40:20 -0500 Subject: [PATCH] Updated versions and replaced mysql docs with mariadb Updated Readme to replace the use of mysql with mariadb. Updated instructions to use boot image builder instead of Jib. Updated vesions --- .../batch/batchsamples/README.adoc | 10 +++++----- .../batch/batchsamples/pom.xml | 20 ++----------------- 2 files changed, 7 insertions(+), 23 deletions(-) diff --git a/dataflow-website/batch-developer-guides/batch/batchsamples/README.adoc b/dataflow-website/batch-developer-guides/batch/batchsamples/README.adoc index d2c2616..a78d7b5 100644 --- a/dataflow-website/batch-developer-guides/batch/batchsamples/README.adoc +++ b/dataflow-website/batch-developer-guides/batch/batchsamples/README.adoc @@ -21,7 +21,7 @@ $./mvnw clean package -Pdist == Build the Docker Images for the project ``` -$ ./mvnw clean package jib:dockerBuild +$ ./mvnw spring-boot:build-image ``` NOTE: You can modify the docker org and version by applying the following: `-Ddocker.org= -Ddocker.version=` @@ -30,16 +30,16 @@ NOTE: You can modify the docker org and version by applying the following: `-Ddo === To execute billsetuptask locally -Assuming you are using MySql +Assuming you are using Mariadb ``` -$ java -jar target/billsetuptask-1.0.0.BUILD-SNAPSHOT.jar --spring.datasource.url=jdbc:mysql://localhost:3306/?useSSL=false --spring.datasource.username= --spring.datasource.password= --spring.datasource.driverClassName=com.mysql.jdbc.Driver +$ java -jar target/billsetuptask-0.0.1-SNAPSHOT.jar --spring.datasource.url=jdbc:mariadb://localhost:3306/?useSSL=false --spring.datasource.username= --spring.datasource.password= --spring.datasource.driverClassName=org.mariadb.jdbc.Driver ``` === To execute billrun locally -Assuming you are using MySql, this app will load data from the usageinfo.txt file found in the classpath (included in the jar). +Assuming you are using Mariadb, this app will load data from the usageinfo.txt file found in the classpath (included in the jar). ``` -$ java -jar target/billrun-1.0.0.BUILD-SNAPSHOT.jar --spring.datasource.url=jdbc:mysql://localhost:3306/?useSSL=false --spring.datasource.username= --spring.datasource.password= --spring.datasource.driverClassName=com.mysql.jdbc.Driver +$ java -jar target/billrun-0.0.1-SNAPSHOT.jar --spring.datasource.url=--spring.datasource.url=jdbc:mariadb://localhost:3306/?useSSL=false --spring.datasource.username= --spring.datasource.password= --spring.datasource.driverClassName=org.mariadb.jdbc.Driver ``` If you wish to read a directory containing the data you can use the following command line argument: `--usage.file.name=file://` diff --git a/dataflow-website/batch-developer-guides/batch/batchsamples/pom.xml b/dataflow-website/batch-developer-guides/batch/batchsamples/pom.xml index f1599c6..0a4cc95 100644 --- a/dataflow-website/batch-developer-guides/batch/batchsamples/pom.xml +++ b/dataflow-website/batch-developer-guides/batch/batchsamples/pom.xml @@ -14,7 +14,7 @@ org.springframework.boot spring-boot-starter-parent - 2.2.2.RELEASE + 2.6.2 @@ -22,7 +22,7 @@ UTF-8 1.8 - Greenwich.SR1 + 2021.0.0 springcloudtask ${project.version} @@ -85,22 +85,6 @@ org.springframework.boot spring-boot-maven-plugin - - com.google.cloud.tools - jib-maven-plugin - 0.10.1 - - - springcloud/openjdk - - - ${docker.org}/${project.artifactId}:${docker.version} - - - true - - -