prepare setup for custom http frontend for kafka scripts

This commit is contained in:
Thilo Behnke
2022-05-15 17:52:49 +02:00
parent 4a6fa4ed51
commit ad6bc4cef5
6 changed files with 29 additions and 1 deletions

View File

@@ -9,7 +9,8 @@ services:
- ALLOW_ANONYMOUS_LOGIN=yes
kafka:
container_name: pong_server_kafka
image: 'bitnami/kafka:latest'
build:
context: kafka
ports:
- '9092:9092'
environment:

7
server/kafka/Dockerfile Normal file
View File

@@ -0,0 +1,7 @@
FROM bitnami/kafka:latest
ADD custom-entrypoint.sh /
ADD kafka-script-proxy/target/release/kafka-script-proxy /bin/
ENTRYPOINT []
CMD [ "/custom-entrypoint.sh" ]

View File

@@ -0,0 +1,4 @@
#!/usr/bin/env bash
/bin/kafka-script-proxy &
/opt/bitnami/scripts/kafka/entrypoint.sh "/opt/bitnami/scripts/kafka/run.sh"

View File

@@ -0,0 +1 @@
/target

View File

@@ -0,0 +1,12 @@
[package]
name = "kafka-script-proxy"
version = "0.1.0"
edition = "2021"
[workspace]
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
hyper = {version = "0.14.18", features = ["full"]}
tokio = { version = "1", features = ["full"] }

View File

@@ -0,0 +1,3 @@
fn main() {
println!("Hello, world!");
}