chore: Provide scripts to start the containers
This commit is contained in:
parent
24795af52b
commit
06aab542bf
4 changed files with 39 additions and 15 deletions
23
devenv.nix
23
devenv.nix
|
|
@ -52,33 +52,36 @@
|
|||
'';
|
||||
"distributed-portal".exec = ''
|
||||
java ${datasource}/distributed-besucherportal \
|
||||
-Dbootstrap.servers=localhost:29092 \
|
||||
-Dspring.kafka.consumer.bootstrap-servers=localhost:29092 \
|
||||
-Dspring.kafka.producer.bootstrap-servers=localhost:29092 \
|
||||
-Dbootstrap.servers=localhost:9092 \
|
||||
-Dspring.kafka.consumer.bootstrap-servers=localhost:9092 \
|
||||
-Dspring.kafka.producer.bootstrap-servers=localhost:9092 \
|
||||
-jar flex-training-flexinale/flexinale-distributed/flexinale-distributed-besucherportal/target/flexinale-distributed-besucherportal-2024.3.0-spring-boot-fat-jar.jar
|
||||
'';
|
||||
"distributed-backoffice".exec = ''
|
||||
java ${datasource}/distributed-backoffice \
|
||||
-Dbootstrap.servers=localhost:29092 \
|
||||
-Dspring.kafka.consumer.bootstrap-servers=localhost:29092 \
|
||||
-Dspring.kafka.producer.bootstrap-servers=localhost:29092 \
|
||||
-Dbootstrap.servers=localhost:9092 \
|
||||
-Dspring.kafka.consumer.bootstrap-servers=localhost:9092 \
|
||||
-Dspring.kafka.producer.bootstrap-servers=localhost:9092 \
|
||||
-jar flex-training-flexinale/flexinale-distributed/flexinale-distributed-backoffice/target/flexinale-distributed-backoffice-2024.3.0-spring-boot-fat-jar.jar
|
||||
'';
|
||||
"distributed-ticketing".exec = ''
|
||||
java ${datasource}/distributed-ticketing \
|
||||
-Dbootstrap.servers=localhost:29092 \
|
||||
-Dspring.kafka.consumer.bootstrap-servers=localhost:29092 \
|
||||
-Dspring.kafka.producer.bootstrap-servers=localhost:29092 \
|
||||
-Dbootstrap.servers=localhost:9092 \
|
||||
-Dspring.kafka.consumer.bootstrap-servers=localhost:9092 \
|
||||
-Dspring.kafka.producer.bootstrap-servers=localhost:9092 \
|
||||
-jar flex-training-flexinale/flexinale-distributed/flexinale-distributed-ticketing/target/flexinale-distributed-ticketing-2024.3.0-spring-boot-fat-jar.jar
|
||||
'';
|
||||
};
|
||||
|
||||
services.apache-kafka = {
|
||||
services.kafka = {
|
||||
enable = true;
|
||||
clusterId = "foobar";
|
||||
settings = {
|
||||
"broker.id" = 1;
|
||||
"node.id" = 1;
|
||||
"offsets.topic.replication.factor" = 1;
|
||||
"transaction.state.log.replication.factor" = 1;
|
||||
"transaction.state.log.min.isr" = 1;
|
||||
"process.roles" = [
|
||||
"broker"
|
||||
"controller"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue