代码拉取完成,页面将自动刷新
Clone this repository into a folder ~/confluent-labs
on your computer:
$ git clone https://github.com/confluentinc/training-ksql-and-streams-src.git ~/confluent-streams
Navigate to this folder:
$ cd ~/confluent-streams
Optional: Open this folder in your favorite code editor; e.g. if you have VS Code installed then:
$ code .
Note
|
We have two main folders solution and labs in this repo. The former contains the complete sample solution for each exercise while the latter contains the scaffolding for each exercise and is meant to be used during the hands-on-labs.For each module of the course that has exercises we have a corresponding sub-folder m-xx where the respective exercises can be found.
|
To build a project Java project using Gradle do the following:
cd
into the corresponding project folder (the folder where the Gradle build file build.gradle
is located).
Run this command to build the jar
:
$ docker container run --rm \
-v ${PWD}:/home/gradle/project \
-v ${HOME}/.gradle:/root/.gradle \
-w /home/gradle/project \
frekele/gradle:latest gradle build
Run the application:
$ docker container run --rm \ -v $(PWD)/target/app.jar:/app.jar \ openjdk:8-jre-alpine java -jar /app.jar
Note
|
Sometimes the Alpine based image is not working depending on the dependencies used. In this case use this command instead: |
$ docker container run --rm \ -v $(PWD)/target/app.jar:/app.jar \ openjdk:8-jre java -jar /app.jar
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。