Skip to content

Commit

Permalink
Update the base images to bookworm, support kafka plugin (#1485)
Browse files Browse the repository at this point in the history
  • Loading branch information
svix-jplatte authored Oct 15, 2024
2 parents d0443bd + 3499e6c commit f6776fa
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
10 changes: 7 additions & 3 deletions bridge/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
# Base build
FROM rust:1.72-slim-bullseye AS build
FROM rust:1.81-slim-bookworm AS build

RUN apt-get update && apt-get install -y \
build-essential=12.* \
checkinstall=1.* \
curl=7.* \
libssl-dev=* \
pkg-config=0.29.* \
pkg-config=1.8.* \
zlib1g-dev=1:* \
cmake=3.* \
--no-install-recommends

RUN set -ex ; \
Expand All @@ -23,12 +24,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 All @@ -44,7 +48,7 @@ RUN touch */src/lib.rs && touch */src/main.rs
RUN cargo build --release --frozen

# Production
FROM debian:bullseye-slim AS prod
FROM debian:bookworm-slim AS prod

RUN set -ex ; \
mkdir -p /app ;\
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 f6776fa

Please sign in to comment.