2 Star 0 Fork 0

mirrors_confluentinc/training-ksql-and-streams-src

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README

KSQL & Kafka Streams Exercises

Cloning the Repository

  1. 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
  2. Navigate to this folder:

    $ cd ~/confluent-streams
  3. 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.

Java base Exercises using Gradle

To build a project Java project using Gradle do the following:

  1. cd into the corresponding project folder (the folder where the Gradle build file build.gradle is located).

  2. 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
  3. 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

空文件

简介

取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/mirrors_confluentinc/training-ksql-and-streams-src.git
git@gitee.com:mirrors_confluentinc/training-ksql-and-streams-src.git
mirrors_confluentinc
training-ksql-and-streams-src
training-ksql-and-streams-src
master

搜索帮助