Skip to content

Commit

Permalink
Bootstrap repo
Browse files Browse the repository at this point in the history
  • Loading branch information
Creek-Bot committed Mar 6, 2023
1 parent 43e21d6 commit 129bb2c
Show file tree
Hide file tree
Showing 62 changed files with 74 additions and 1,046 deletions.
102 changes: 0 additions & 102 deletions .creek/bootstrap.sh

This file was deleted.

2 changes: 1 addition & 1 deletion .creek/service_template/example-service/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ ARG APP_NAME
ARG APP_VERSION
ENV VERSION=$APP_VERSION

LABEL org.opencontainers.image.source=https://github.com/creek-service/basic-kafka-streams-demo/tree/main/example-service
LABEL org.opencontainers.image.source=https://github.com/creek-service/connected-services-demo/tree/main/example-service

RUN yum update -y
RUN yum install -y tar lsof
Expand Down
4 changes: 2 additions & 2 deletions .creek/service_template/example-service/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ dependencies {
modularity.patchModule("kafka.streams", "kafka-streams-test-utils-$kafkaVersion.jar")

application {
mainModule.set("basic.kafka.streams.demo.example.service")
mainClass.set("io.github.creek.service.basic.kafka.streams.demo.example.service.ServiceMain")
mainModule.set("connected.services.demo.example.service")
mainClass.set("io.github.creek.service.connected.services.demo.example.service.ServiceMain")
}

val buildAppImage = tasks.register<DockerBuildImage>("buildAppImage") {
Expand Down
2 changes: 1 addition & 1 deletion .creek/service_template/example-service/include/bin/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,4 @@ exec java \
-Xms64m -Xmx256m \
-Dlog4j.configurationFile=/log/log4j2.xml \
--module-path "/opt/creek/service/lib" \
--module basic.kafka.streams.demo.example.service/io.github.creek.service.basic.kafka.streams.demo.example.service.ServiceMain
--module connected.services.demo.example.service/io.github.creek.service.connected.services.demo.example.service.ServiceMain
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@
* limitations under the License.
*/

package io.github.creek.service.basic.kafka.streams.demo.example.service;
package io.github.creek.service.connected.services.demo.example.service;

import io.github.creek.service.basic.kafka.streams.demo.example.service.kafka.streams.TopologyBuilder;
import io.github.creek.service.basic.kafka.streams.demo.services.ExampleServiceDescriptor;
import io.github.creek.service.connected.services.demo.example.service.kafka.streams.TopologyBuilder;
import io.github.creek.service.connected.services.demo.services.ExampleServiceDescriptor;
import org.apache.kafka.streams.Topology;
import org.creekservice.api.kafka.streams.extension.KafkaStreamsExtension;
import org.creekservice.api.kafka.streams.extension.KafkaStreamsExtensionOptions;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@
* limitations under the License.
*/

package io.github.creek.service.basic.kafka.streams.demo.example.service.kafka.streams;
package io.github.creek.service.connected.services.demo.example.service.kafka.streams;

import static java.util.Objects.requireNonNull;
import static org.creekservice.api.kafka.metadata.KafkaTopicDescriptor.DEFAULT_CLUSTER_NAME;

import io.github.creek.service.basic.kafka.streams.demo.services.ExampleServiceDescriptor;
import io.github.creek.service.connected.services.demo.services.ExampleServiceDescriptor;
import org.apache.kafka.streams.KeyValue;
import org.apache.kafka.streams.StreamsBuilder;
import org.apache.kafka.streams.Topology;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module basic.kafka.streams.demo.example.service {
requires basic.kafka.streams.demo.services;
module connected.services.demo.example.service {
requires connected.services.demo.services;
requires creek.service.context;
requires creek.kafka.streams.extension;
requires org.apache.logging.log4j;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
*/

package io.github.creek.service.basic.kafka.streams.demo.example.streams;
package io.github.creek.service.connected.services.demo.example.streams;

import static org.apache.kafka.streams.KeyValue.pair;
import static org.creekservice.api.kafka.metadata.KafkaTopicDescriptor.DEFAULT_CLUSTER_NAME;
Expand All @@ -24,8 +24,8 @@
import static org.hamcrest.Matchers.contains;
import static org.hamcrest.Matchers.is;

import io.github.creek.service.basic.kafka.streams.demo.example.service.kafka.streams.TopologyBuilder;
import io.github.creek.service.basic.kafka.streams.demo.services.ExampleServiceDescriptor;
import io.github.creek.service.connected.services.demo.example.service.kafka.streams.TopologyBuilder;
import io.github.creek.service.connected.services.demo.services.ExampleServiceDescriptor;
import org.apache.kafka.streams.TestInputTopic;
import org.apache.kafka.streams.TestOutputTopic;
import org.apache.kafka.streams.Topology;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
org.junitpioneer,org.hamcrest,guava.testlib,creek.test.util,creek.test.hamcrest,creek.kafka.streams.test

--add-reads
basic.kafka.streams.demo.example.service=org.junitpioneer,org.hamcrest,guava.testlib,creek.test.util,creek.test.hamcrest,creek.kafka.streams.test
connected.services.demo.example.service=org.junitpioneer,org.hamcrest,guava.testlib,creek.test.util,creek.test.hamcrest,creek.kafka.streams.test

--add-opens
org.junitpioneer/org.junitpioneer.jupiter=org.junit.platform.commons
2 changes: 1 addition & 1 deletion .creek/service_template/root.package
Original file line number Diff line number Diff line change
@@ -1 +1 @@
io.github.creek.service.basic.kafka.streams.demo
io.github.creek.service.connected.services.demo
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,15 @@
* limitations under the License.
*/

package io.github.creek.service.basic.kafka.streams.demo.services;
package io.github.creek.service.connected.services.demo.services;

import static io.github.creek.service.basic.kafka.streams.demo.internal.TopicDescriptors.inputTopic;
import static io.github.creek.service.connected.services.demo.internal.TopicDescriptors.inputTopic;

import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
import io.github.creek.service.basic.kafka.streams.demo.api.BasicKafkaStreamsDemoAggregateDescriptor;
import io.github.creek.service.basic.kafka.streams.demo.internal.TopicConfigBuilder;
import io.github.creek.service.connected.services.demo.api.ConnectedServicesDemoAggregateDescriptor;
import io.github.creek.service.connected.services.demo.internal.TopicConfigBuilder;
import org.creekservice.api.kafka.metadata.OwnedKafkaTopicInput;
import org.creekservice.api.kafka.metadata.OwnedKafkaTopicOutput;
import org.creekservice.api.platform.metadata.ComponentInput;
Expand All @@ -40,7 +40,7 @@ public ExampleServiceDescriptor() {}

@Override
public String dockerImage() {
return "ghcr.io/creek-service/basic-kafka-streams-demo-example-service";
return "ghcr.io/creek-service/connected-services-demo-example-service";
}

@Override
Expand Down
1 change: 0 additions & 1 deletion .github/CODEOWNERS

This file was deleted.

10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)
[![Coverage Status](https://coveralls.io/repos/github/creek-service/basic-kafka-streams-demo/badge.svg?branch=main)](https://coveralls.io/github/creek-service/basic-kafka-streams-demo?branch=main)
[![build](https://github.com/creek-service/basic-kafka-streams-demo/actions/workflows/build.yml/badge.svg)](https://github.com/creek-service/basic-kafka-streams-demo/actions/workflows/build.yml)
[![CodeQL](https://github.com/creek-service/basic-kafka-streams-demo/actions/workflows/codeql.yml/badge.svg)](https://github.com/creek-service/basic-kafka-streams-demo/actions/workflows/codeql.yml)
[![Coverage Status](https://coveralls.io/repos/github/creek-service/connected-services-demo/badge.svg?branch=main)](https://coveralls.io/github/creek-service/connected-services-demo?branch=main)
[![build](https://github.com/creek-service/connected-services-demo/actions/workflows/build.yml/badge.svg)](https://github.com/creek-service/connected-services-demo/actions/workflows/build.yml)
[![CodeQL](https://github.com/creek-service/connected-services-demo/actions/workflows/codeql.yml/badge.svg)](https://github.com/creek-service/connected-services-demo/actions/workflows/codeql.yml)

# Basic Kafka Streams Demo

Repo containing the completed [Basic Kafka Streams demo](https://www.creekservice.org/basic-kafka-streams-demo)
Repo containing the completed [Basic Kafka Streams demo](https://www.creekservice.org/connected-services-demo)
and associated [docs](docs/README.md).

This repository is also a template repository to enable later tutorials, that build on this one.
Click the [Use this template](https://github.com/creek-service/basic-kafka-streams-demo/generate) button at the top to create a new repository from this template.
Click the [Use this template](https://github.com/creek-service/connected-services-demo/generate) button at the top to create a new repository from this template.

### Gradle commands

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
*/

package io.github.creek.service.basic.kafka.streams.demo.api;
package io.github.creek.service.connected.services.demo.api;

import java.util.ArrayList;
import java.util.Collection;
Expand All @@ -23,12 +23,12 @@
import org.creekservice.api.platform.metadata.ComponentInput;
import org.creekservice.api.platform.metadata.ComponentOutput;

public final class BasicKafkaStreamsDemoAggregateDescriptor implements AggregateDescriptor {
public final class ConnectedServicesDemoAggregateDescriptor implements AggregateDescriptor {

private static final List<ComponentInput> INPUTS = new ArrayList<>();
private static final List<ComponentOutput> OUTPUTS = new ArrayList<>();

public BasicKafkaStreamsDemoAggregateDescriptor() {}
public ConnectedServicesDemoAggregateDescriptor() {}

@Override
public Collection<ComponentInput> inputs() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
*/

package io.github.creek.service.basic.kafka.streams.demo.internal;
package io.github.creek.service.connected.services.demo.internal;

import static java.util.Objects.requireNonNull;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
*/

package io.github.creek.service.basic.kafka.streams.demo.internal;
package io.github.creek.service.connected.services.demo.internal;

import static java.util.Objects.requireNonNull;
import static org.creekservice.api.kafka.metadata.SerializationFormat.serializationFormat;
Expand Down
10 changes: 5 additions & 5 deletions api/src/main/java/module-info.java
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
module basic.kafka.streams.demo.api {
module connected.services.demo.api {
requires transitive creek.kafka.metadata;

exports io.github.creek.service.basic.kafka.streams.demo.api;
exports io.github.creek.service.basic.kafka.streams.demo.internal to
basic.kafka.streams.demo.services,
basic.kafka.streams.demo.service;
exports io.github.creek.service.connected.services.demo.api;
exports io.github.creek.service.connected.services.demo.internal to
connected.services.demo.services,
connected.services.demo.service;
}
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
*/

package io.github.creek.service.basic.kafka.streams.demo.internal;
package io.github.creek.service.connected.services.demo.internal;

import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.Matchers.hasEntry;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@
* limitations under the License.
*/

package io.github.creek.service.basic.kafka.streams.demo.internal;
package io.github.creek.service.connected.services.demo.internal;

import static io.github.creek.service.basic.kafka.streams.demo.internal.TopicDescriptors.KAFKA_FORMAT;
import static io.github.creek.service.basic.kafka.streams.demo.internal.TopicDescriptors.creatableInternalTopic;
import static io.github.creek.service.basic.kafka.streams.demo.internal.TopicDescriptors.inputTopic;
import static io.github.creek.service.basic.kafka.streams.demo.internal.TopicDescriptors.internalTopic;
import static io.github.creek.service.basic.kafka.streams.demo.internal.TopicDescriptors.outputTopic;
import static io.github.creek.service.connected.services.demo.internal.TopicDescriptors.KAFKA_FORMAT;
import static io.github.creek.service.connected.services.demo.internal.TopicDescriptors.creatableInternalTopic;
import static io.github.creek.service.connected.services.demo.internal.TopicDescriptors.inputTopic;
import static io.github.creek.service.connected.services.demo.internal.TopicDescriptors.internalTopic;
import static io.github.creek.service.connected.services.demo.internal.TopicDescriptors.outputTopic;
import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.Matchers.is;
import static org.hamcrest.Matchers.sameInstance;
Expand Down
2 changes: 1 addition & 1 deletion api/src/test/java/module-info.test
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
org.junitpioneer,org.hamcrest,guava.testlib,creek.test.util,creek.test.hamcrest

--add-reads
basic.kafka.streams.demo.api=org.junitpioneer,org.hamcrest,guava.testlib,creek.test.util,creek.test.hamcrest
connected.services.demo.api=org.junitpioneer,org.hamcrest,guava.testlib,creek.test.util,creek.test.hamcrest

--add-opens
org.junitpioneer/org.junitpioneer.jupiter=org.junit.platform.commons
15 changes: 0 additions & 15 deletions docs/.gitignore

This file was deleted.

9 changes: 0 additions & 9 deletions docs/Gemfile

This file was deleted.

Loading

0 comments on commit 129bb2c

Please sign in to comment.