From 9224d78e7c75371c9f89e4575ac99f34631a25c5 Mon Sep 17 00:00:00 2001 From: Ashay Date: Sat, 12 Oct 2024 01:22:30 +0530 Subject: [PATCH] Update Dockerfile rust and support kafka plugin --- bridge/Dockerfile | 7 ++++++- bridge/svix-bridge-plugin-kafka/Cargo.toml | 2 +- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/bridge/Dockerfile b/bridge/Dockerfile index 550f7dfb0..0a6a5c8f9 100644 --- a/bridge/Dockerfile +++ b/bridge/Dockerfile @@ -1,5 +1,5 @@ # Base build -FROM rust:1.72-slim-bullseye AS build +FROM rust:1.79-slim-bullseye AS build RUN apt-get update && apt-get install -y \ build-essential=12.* \ @@ -8,6 +8,8 @@ RUN apt-get update && apt-get install -y \ libssl-dev=* \ pkg-config=0.29.* \ zlib1g-dev=1:* \ + librdkafka-dev \ + cmake \ --no-install-recommends RUN set -ex ; \ @@ -23,12 +25,15 @@ WORKDIR /app COPY Cargo.toml . COPY Cargo.lock . COPY svix-bridge-types/Cargo.toml svix-bridge-types/ +COPY svix-bridge-plugin-kafka/Cargo.toml svix-bridge-plugin-kafka/ COPY svix-bridge-plugin-queue/Cargo.toml svix-bridge-plugin-queue/ COPY svix-bridge/Cargo.toml svix-bridge/ RUN set -ex ;\ + mkdir svix-bridge-plugin-kafka/src ;\ mkdir svix-bridge-plugin-queue/src ;\ mkdir svix-bridge-types/src ;\ mkdir svix-bridge/src ;\ + echo '' > svix-bridge-plugin-kafka/src/lib.rs ;\ echo '' > svix-bridge-plugin-queue/src/lib.rs ;\ echo '' > svix-bridge-types/src/lib.rs ;\ echo 'fn main() { println!("Dummy!"); }' > svix-bridge/src/main.rs ;\ diff --git a/bridge/svix-bridge-plugin-kafka/Cargo.toml b/bridge/svix-bridge-plugin-kafka/Cargo.toml index 7d997eb6c..6073dc9f2 100644 --- a/bridge/svix-bridge-plugin-kafka/Cargo.toml +++ b/bridge/svix-bridge-plugin-kafka/Cargo.toml @@ -5,7 +5,7 @@ edition = "2021" publish = false [dependencies] -rdkafka = { version = "0.36.0", features = ["cmake-build", "ssl", "tracing"] } +rdkafka = { version = "0.36.2", features = ["cmake-build", "ssl", "tracing"] } serde.workspace = true serde_json.workspace = true svix-bridge-types.workspace = true