Skip to content

Commit

Permalink
Update Dockerfile rust and support kafka plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
ashayshub committed Oct 11, 2024
1 parent d0443bd commit 9224d78
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 6 additions & 1 deletion bridge/Dockerfile
Original file line number Diff line number Diff line change
@@ -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.* \
Expand All @@ -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 ; \
Expand All @@ -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 ;\
Expand Down
2 changes: 1 addition & 1 deletion bridge/svix-bridge-plugin-kafka/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9224d78

Please sign in to comment.