Skip to content

Commit 79994d3

Browse files
authored
Merge branch 'main' into fix/conf_dirs
2 parents 33b75b1 + 0674286 commit 79994d3

File tree

286 files changed

+11296
-6591
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

286 files changed

+11296
-6591
lines changed

documentation/compose/ui-arm64.yaml renamed to .dev/dev_arm64.yaml

Lines changed: 37 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,14 @@
1+
# This is a compose file designed for arm64/Apple Silicon systems
2+
# To adapt this to x86 please find and replace ".arm64" with empty
3+
14
# ARM64 supported images for kafka can be found here
25
# https://hub.docker.com/r/confluentinc/cp-kafka/tags?page=1&name=arm64
36
---
4-
version: '2'
7+
version: '3.8'
8+
name: "kafbat-ui-dev"
9+
510
services:
11+
612
kafbat-ui:
713
container_name: kafbat-ui
814
image: ghcr.io/kafbat/kafka-ui:latest
@@ -12,19 +18,22 @@ services:
1218
- kafka0
1319
- schema-registry0
1420
- kafka-connect0
21+
- ksqldb0
1522
environment:
1623
KAFKA_CLUSTERS_0_NAME: local
1724
KAFKA_CLUSTERS_0_BOOTSTRAPSERVERS: kafka0:29092
1825
KAFKA_CLUSTERS_0_METRICS_PORT: 9997
1926
KAFKA_CLUSTERS_0_SCHEMAREGISTRY: http://schema-registry0:8085
2027
KAFKA_CLUSTERS_0_KAFKACONNECT_0_NAME: first
2128
KAFKA_CLUSTERS_0_KAFKACONNECT_0_ADDRESS: http://kafka-connect0:8083
22-
DYNAMIC_CONFIG_ENABLED: 'true' # not necessary, added for tests
29+
KAFKA_CLUSTERS_0_KSQLDBSERVER: http://ksqldb0:8088
30+
DYNAMIC_CONFIG_ENABLED: 'true'
2331
KAFKA_CLUSTERS_0_AUDIT_TOPICAUDITENABLED: 'true'
2432
KAFKA_CLUSTERS_0_AUDIT_CONSOLEAUDITENABLED: 'true'
2533

2634
kafka0:
27-
image: confluentinc/cp-kafka:7.2.1.arm64
35+
image: confluentinc/cp-kafka:7.8.0.arm64
36+
user: "0:0"
2837
hostname: kafka0
2938
container_name: kafka0
3039
ports:
@@ -46,13 +55,12 @@ services:
4655
KAFKA_CONTROLLER_LISTENER_NAMES: 'CONTROLLER'
4756
KAFKA_LOG_DIRS: '/tmp/kraft-combined-logs'
4857
KAFKA_JMX_PORT: 9997
58+
# KAFKA_JMX_HOSTNAME: localhost # uncomment this line and comment the next one if running with kafka-ui as a jar
4959
KAFKA_JMX_OPTS: -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false -Djava.rmi.server.hostname=kafka0 -Dcom.sun.management.jmxremote.rmi.port=9997
50-
volumes:
51-
- ./scripts/update_run.sh:/tmp/update_run.sh
52-
command: "bash -c 'if [ ! -f /tmp/update_run.sh ]; then echo \"ERROR: Did you forget the update_run.sh file that came with this docker-compose.yml file?\" && exit 1 ; else /tmp/update_run.sh && /etc/confluent/docker/run ; fi'"
60+
CLUSTER_ID: 'MkU3OEVBNTcwNTJENDM2Qk'
5361

5462
schema-registry0:
55-
image: confluentinc/cp-schema-registry:7.2.1.arm64
63+
image: confluentinc/cp-schema-registry:7.8.0.arm64
5664
ports:
5765
- 8085:8085
5866
depends_on:
@@ -68,7 +76,7 @@ services:
6876
SCHEMA_REGISTRY_KAFKASTORE_TOPIC: _schemas
6977

7078
kafka-connect0:
71-
image: confluentinc/cp-kafka-connect:7.2.1.arm64
79+
image: confluentinc/cp-kafka-connect:7.8.0.arm64
7280
ports:
7381
- 8083:8083
7482
depends_on:
@@ -90,12 +98,30 @@ services:
9098
CONNECT_INTERNAL_KEY_CONVERTER: org.apache.kafka.connect.json.JsonConverter
9199
CONNECT_INTERNAL_VALUE_CONVERTER: org.apache.kafka.connect.json.JsonConverter
92100
CONNECT_REST_ADVERTISED_HOST_NAME: kafka-connect0
93-
CONNECT_PLUGIN_PATH: "/usr/share/java,/usr/share/confluent-hub-components"
101+
CONNECT_PLUGIN_PATH: "/usr/share/java,/usr/share/confluent-hub-components,/usr/local/share/kafka/plugins,/usr/share/filestream-connectors"
102+
103+
ksqldb0:
104+
image: confluentinc/cp-ksqldb-server:7.8.0.arm64
105+
depends_on:
106+
- kafka0
107+
- kafka-connect0
108+
- schema-registry0
109+
environment:
110+
KSQL_CUB_KAFKA_TIMEOUT: 120
111+
KSQL_LISTENERS: http://0.0.0.0:8088
112+
KSQL_BOOTSTRAP_SERVERS: PLAINTEXT://kafka0:29092
113+
KSQL_KSQL_LOGGING_PROCESSING_STREAM_AUTO_CREATE: "true"
114+
KSQL_KSQL_LOGGING_PROCESSING_TOPIC_AUTO_CREATE: "true"
115+
KSQL_KSQL_CONNECT_URL: http://kafka-connect0:8083
116+
KSQL_KSQL_SCHEMA_REGISTRY_URL: http://schema-registry0:8085
117+
KSQL_KSQL_SERVICE_ID: my_ksql_1
118+
KSQL_KSQL_HIDDEN_TOPICS: '^_.*'
119+
KSQL_CACHE_MAX_BYTES_BUFFERING: 0
94120

95121
kafka-init-topics:
96-
image: confluentinc/cp-kafka:7.2.1.arm64
122+
image: confluentinc/cp-kafka:7.8.0.arm64
97123
volumes:
98-
- ./data/message.json:/data/message.json
124+
- ../documentation/compose/data/message.json:/data/message.json
99125
depends_on:
100126
- kafka0
101127
command: "bash -c 'echo Waiting for Kafka to be ready... && \

.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
* text=auto eol=lf

.github/CODEOWNERS

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,16 @@
33

44
# BACKEND
55
/pom.xml @kafbat/backend
6-
7-
/contract/ @kafbat/backend
8-
9-
/api/ @kafbat/backend
6+
/contract/ @kafbat/backend
7+
/api/ @kafbat/backend
8+
/serde-api/ @kafbat/backend
9+
/documentation/compose/ @kafbat/backend
1010

1111
# FRONTEND
12-
/frontend/ @kafbat/frontend
12+
/frontend/ @kafbat/frontend
1313

1414
# TESTS
15-
/e2e-tests/ @kafbat/qa
15+
/e2e-tests/ @kafbat/qa
1616

1717
# INFRA
1818
/.github/workflows/ @kafbat/devops

.github/dependabot.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,23 @@ updates:
1414
- "type/dependencies"
1515
- "scope/backend"
1616

17+
- package-ecosystem: docker
18+
directory: "/api"
19+
schedule:
20+
interval: weekly
21+
time: "10:00"
22+
timezone: Europe/London
23+
reviewers:
24+
- "kafbat/backend"
25+
open-pull-requests-limit: 10
26+
ignore:
27+
- dependency-name: "azul/zulu-openjdk-alpine"
28+
# Limit dependabot pull requests to minor Java upgrades
29+
update-types: ["version-update:semver-major"]
30+
labels:
31+
- "type/dependencies"
32+
- "scope/backend"
33+
1734
- package-ecosystem: npm
1835
directory: "/frontend"
1936
schedule:
File renamed without changes.

.github/workflows/backend_main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ concurrency:
1919
cancel-in-progress: true
2020

2121
jobs:
22-
build:
22+
build-and-test:
2323
uses: ./.github/workflows/backend_tests.yml
2424
with:
2525
event_name: ${{ github.event_name }}

.github/workflows/backend_pr.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ concurrency:
2020
cancel-in-progress: true
2121

2222
jobs:
23-
build:
23+
build-and-test:
2424
uses: ./.github/workflows/backend_tests.yml
2525
with:
2626
event_name: ${{ github.event_name }}

.github/workflows/backend_tests.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,14 @@ jobs:
2626
ref: ${{ github.event.pull_request.head.sha }}
2727

2828
- name: Set up JDK
29-
uses: actions/setup-java@v3
29+
uses: actions/setup-java@v4
3030
with:
31-
java-version: '17'
31+
java-version: '21'
3232
distribution: 'zulu'
3333
cache: 'maven'
3434

3535
- name: Cache SonarCloud packages
36-
uses: actions/cache@v3
36+
uses: actions/cache@v4
3737
with:
3838
path: ~/.sonar/cache
3939
key: ${{ runner.os }}-sonar

.github/workflows/branch-deploy.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@ jobs:
2727
env:
2828
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2929
- name: Set up JDK
30-
uses: actions/setup-java@v3
30+
uses: actions/setup-java@v4
3131
with:
32-
java-version: '17'
32+
java-version: '21'
3333
distribution: 'zulu'
3434
cache: 'maven'
3535
- name: Build
@@ -40,12 +40,12 @@ jobs:
4040
export VERSION=$(./mvnw -q -Dexec.executable=echo -Dexec.args='${project.version}' --non-recursive exec:exec)
4141
echo "version=${VERSION}" >> $GITHUB_OUTPUT
4242
- name: Set up QEMU
43-
uses: docker/setup-qemu-action@v2
43+
uses: docker/setup-qemu-action@v3
4444
- name: Set up Docker Buildx
4545
id: buildx
4646
uses: docker/setup-buildx-action@v3
4747
- name: Cache Docker layers
48-
uses: actions/cache@v3
48+
uses: actions/cache@v4
4949
with:
5050
path: /tmp/.buildx-cache
5151
key: ${{ runner.os }}-buildx-${{ github.sha }}

.github/workflows/build-public-image.yml

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@ on:
66
types: ['labeled']
77

88
permissions:
9+
id-token: write
910
contents: read
11+
pull-requests: write
1012

1113
jobs:
1214
build:
@@ -23,9 +25,9 @@ jobs:
2325
tag='${{ github.event.pull_request.number }}'
2426
echo "tag=${tag}" >> $GITHUB_OUTPUT
2527
- name: Set up JDK
26-
uses: actions/setup-java@v3
28+
uses: actions/setup-java@v4
2729
with:
28-
java-version: '17'
30+
java-version: '21'
2931
distribution: 'zulu'
3032
cache: 'maven'
3133
- name: Build
@@ -36,23 +38,22 @@ jobs:
3638
export VERSION=$(./mvnw -q -Dexec.executable=echo -Dexec.args='${project.version}' --non-recursive exec:exec)
3739
echo "version=${VERSION}" >> $GITHUB_OUTPUT
3840
- name: Set up QEMU
39-
uses: docker/setup-qemu-action@v2
41+
uses: docker/setup-qemu-action@v3
4042
- name: Set up Docker Buildx
4143
id: buildx
4244
uses: docker/setup-buildx-action@v3
4345
- name: Cache Docker layers
44-
uses: actions/cache@v3
46+
uses: actions/cache@v4
4547
with:
4648
path: /tmp/.buildx-cache
4749
key: ${{ runner.os }}-buildx-${{ github.sha }}
4850
restore-keys: |
4951
${{ runner.os }}-buildx-
50-
- name: Configure AWS credentials for Kafka-UI account
52+
- name: Configure AWS Credentials
5153
uses: aws-actions/configure-aws-credentials@v4
5254
with:
53-
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
54-
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
5555
aws-region: us-east-1
56+
role-to-assume: ${{ secrets.AWS_ROLE }}
5657
- name: Login to Amazon ECR
5758
id: login-ecr
5859
uses: aws-actions/amazon-ecr-login@v2
@@ -65,7 +66,7 @@ jobs:
6566
builder: ${{ steps.buildx.outputs.name }}
6667
context: api
6768
push: true
68-
tags: public.ecr.aws/kafbat/kafka-ui-custom-build:${{ steps.extract_branch.outputs.tag }}
69+
tags: ${{ vars.ECR_REGISTRY }}/${{ github.repository }}:${{ steps.extract_branch.outputs.tag }}
6970
build-args: |
7071
JAR_FILE=api-${{ steps.build.outputs.version }}.jar
7172
cache-from: type=local,src=/tmp/.buildx-cache
@@ -75,6 +76,6 @@ jobs:
7576
with:
7677
issue-number: ${{ github.event.pull_request.number }}
7778
body: |
78-
Image published at public.ecr.aws/kafbat/kafka-ui-custom-build:${{ steps.extract_branch.outputs.tag }}
79+
Image published at ${{ vars.ECR_REGISTRY }}/${{ github.repository }}:${{ steps.extract_branch.outputs.tag }}
7980
outputs:
8081
tag: ${{ steps.extract_branch.outputs.tag }}

0 commit comments

Comments
 (0)