mirror of
https://github.com/thilo-behnke/wasm-pong.git
synced 2026-07-11 02:29:25 +00:00
prepare setup for custom http frontend for kafka scripts
This commit is contained in:
@@ -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
7
server/kafka/Dockerfile
Normal 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" ]
|
||||
4
server/kafka/custom-entrypoint.sh
Executable file
4
server/kafka/custom-entrypoint.sh
Executable 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"
|
||||
1
server/kafka/kafka-script-proxy/.gitignore
vendored
Normal file
1
server/kafka/kafka-script-proxy/.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
||||
/target
|
||||
12
server/kafka/kafka-script-proxy/Cargo.toml
Normal file
12
server/kafka/kafka-script-proxy/Cargo.toml
Normal 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"] }
|
||||
3
server/kafka/kafka-script-proxy/src/main.rs
Normal file
3
server/kafka/kafka-script-proxy/src/main.rs
Normal file
@@ -0,0 +1,3 @@
|
||||
fn main() {
|
||||
println!("Hello, world!");
|
||||
}
|
||||
Reference in New Issue
Block a user