From cb0db13609cc66f1af27b6ce8b1ddf657ff1b7b5 Mon Sep 17 00:00:00 2001 From: Noah Prince Date: Wed, 14 Feb 2024 10:01:22 -0800 Subject: [PATCH] Use same container --- Cargo.lock | 11 ----------- protobuf-delta-lake-sink/Cargo.toml | 1 - protobuf-delta-lake-sink/Dockerfile | 2 +- 3 files changed, 1 insertion(+), 13 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 59512cc..3bbfc6d 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -3848,15 +3848,6 @@ version = "0.1.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ff011a302c396a5197692431fc1948019154afc178baf7d8e37367442a4601cf" -[[package]] -name = "openssl-src" -version = "300.2.3+3.2.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5cff92b6f71555b61bb9315f7c64da3ca43d87531622120fea0195fc761b4843" -dependencies = [ - "cc", -] - [[package]] name = "openssl-sys" version = "0.9.99" @@ -3865,7 +3856,6 @@ checksum = "22e1bf214306098e4832460f797824c05d25aacdf896f64a985fb0fd992454ae" dependencies = [ "cc", "libc", - "openssl-src", "pkg-config", "vcpkg", ] @@ -4287,7 +4277,6 @@ dependencies = [ "lazy_static", "log", "object_store", - "openssl", "parquet", "protobuf", "protobuf-parse", diff --git a/protobuf-delta-lake-sink/Cargo.toml b/protobuf-delta-lake-sink/Cargo.toml index e474218..6c7a4d9 100644 --- a/protobuf-delta-lake-sink/Cargo.toml +++ b/protobuf-delta-lake-sink/Cargo.toml @@ -34,4 +34,3 @@ uuid = "1.3.3" parquet = { version = "39" } log = "0.4.19" env_logger = "0.10.0" -openssl = { version = "0.10.59", features = ["vendored"] } diff --git a/protobuf-delta-lake-sink/Dockerfile b/protobuf-delta-lake-sink/Dockerfile index caac07e..749ea8b 100644 --- a/protobuf-delta-lake-sink/Dockerfile +++ b/protobuf-delta-lake-sink/Dockerfile @@ -22,7 +22,7 @@ COPY src ./src RUN touch -a -m ./src/main.rs RUN cargo build --release -FROM debian:bullseye-slim +FROM rust:1.75.0 RUN apt-get update && apt-get install -y protobuf-compiler ca-certificates openssl && rm -rf /var/lib/apt/lists/* COPY --from=builder /app/target/release/protobuf-delta-lake-sink /app/protobuf-delta-lake-sink