Skip to content

Commit b33620b

Browse files
committed
Revert unnecessary changes
1 parent d866833 commit b33620b

File tree

4 files changed

+39
-9
lines changed

4 files changed

+39
-9
lines changed

.dev/dev.yaml

Lines changed: 25 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,28 @@ name: "kafbat-ui-dev"
33

44
services:
55

6+
kafbat-ui:
7+
container_name: kafbat-ui
8+
image: ghcr.io/kafbat/kafka-ui:latest
9+
ports:
10+
- 8080:8080
11+
depends_on:
12+
- kafka0
13+
- schema-registry0
14+
- kafka-connect0
15+
- ksqldb0
16+
environment:
17+
KAFKA_CLUSTERS_0_NAME: local
18+
KAFKA_CLUSTERS_0_BOOTSTRAPSERVERS: kafka0:29092
19+
KAFKA_CLUSTERS_0_METRICS_PORT: 9997
20+
KAFKA_CLUSTERS_0_SCHEMAREGISTRY: http://schema-registry0:8085
21+
KAFKA_CLUSTERS_0_KAFKACONNECT_0_NAME: first
22+
KAFKA_CLUSTERS_0_KAFKACONNECT_0_ADDRESS: http://kafka-connect0:8083
23+
KAFKA_CLUSTERS_0_KSQLDBSERVER: http://ksqldb0:8088
24+
DYNAMIC_CONFIG_ENABLED: 'true'
25+
KAFKA_CLUSTERS_0_AUDIT_TOPICAUDITENABLED: 'true'
26+
KAFKA_CLUSTERS_0_AUDIT_CONSOLEAUDITENABLED: 'true'
27+
628
kafka0:
729
image: confluentinc/cp-kafka:7.8.0
830
hostname: kafka0
@@ -26,8 +48,8 @@ services:
2648
KAFKA_CONTROLLER_LISTENER_NAMES: 'CONTROLLER'
2749
KAFKA_LOG_DIRS: '/tmp/kraft-combined-logs'
2850
KAFKA_JMX_PORT: 9997
29-
KAFKA_JMX_HOSTNAME: localhost # uncomment this line and comment the next one if running with kafka-ui as a jar
30-
# 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
51+
# KAFKA_JMX_HOSTNAME: localhost # uncomment this line and comment the next one if running with kafka-ui as a jar
52+
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
3153
CLUSTER_ID: 'MkU3OEVBNTcwNTJENDM2Qk'
3254

3355
schema-registry0:
@@ -69,9 +91,7 @@ services:
6991
CONNECT_INTERNAL_KEY_CONVERTER: org.apache.kafka.connect.json.JsonConverter
7092
CONNECT_INTERNAL_VALUE_CONVERTER: org.apache.kafka.connect.json.JsonConverter
7193
CONNECT_REST_ADVERTISED_HOST_NAME: kafka-connect0
72-
CONNECT_PLUGIN_PATH: "/usr/share/java,/usr/share/confluent-hub-components,/usr/share/filestream-connectors,/tmp/connectors"
73-
volumes:
74-
- /tmp/connectors:/tmp/connectors
94+
CONNECT_PLUGIN_PATH: "/usr/share/java,/usr/share/confluent-hub-components,/usr/local/share/kafka/plugins,/usr/share/filestream-connectors"
7595

7696
ksqldb0:
7797
image: confluentinc/cp-ksqldb-server:7.8.0

api/src/main/java/io/kafbat/ui/util/DynamicConfigOperations.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ public boolean dynamicConfigEnabled() {
6565
return "true".equalsIgnoreCase(ctx.getEnvironment().getProperty(DYNAMIC_CONFIG_ENABLED_ENV_PROPERTY));
6666
}
6767

68-
public Path dynamicConfigFilePath() {
68+
private Path dynamicConfigFilePath() {
6969
return Paths.get(
7070
Optional.ofNullable(ctx.getEnvironment().getProperty(DYNAMIC_CONFIG_PATH_ENV_PROPERTY))
7171
.orElse(DYNAMIC_CONFIG_PATH_ENV_PROPERTY_DEFAULT)

api/src/main/resources/application-local.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,7 @@ spring:
2222
user-filter-search-filter: "(&(uid={0})(objectClass=inetOrgPerson))"
2323
group-filter-search-base: "ou=people,dc=planetexpress,dc=com"
2424

25-
26-
kaf1ka:
25+
kafka:
2726
clusters:
2827
- name: local
2928
bootstrapServers: localhost:9092
@@ -82,7 +81,7 @@ auth:
8281
type: github
8382

8483
rbac:
85-
ro1les:
84+
roles:
8685
- name: "memelords"
8786
clusters:
8887
- local

frontend/build.gradle

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,3 +33,14 @@ tasks.register('generateContract', PnpmTask) {
3333
outputs.dir(project.layout.projectDirectory.dir("src/generated-sources"))
3434
args = ['gen:sources']
3535
}
36+
37+
tasks.register('buildFrontend', PnpmTask) {
38+
dependsOn generateContract
39+
inputs.files(fileTree("src/"))
40+
outputs.dir(project.layout.buildDirectory.dir("vite/static"))
41+
args = ['build']
42+
environment = System.getenv() + [
43+
"VITE_TAG" : project.version,
44+
"VITE_COMMIT": "git rev-parse --short HEAD".execute().text.trim()
45+
]
46+
}

0 commit comments

Comments
 (0)