Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 9 additions & 9 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion applications/datamanager/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ tracing-subscriber = { version = "0.3.20", features = ["env-filter", "fmt"] }
aws-config = "1.5.8"
aws-sdk-s3 = "1.48.0"
aws-credential-types = "1.2.6"
duckdb = { version = "1.0", features = ["r2d2", "chrono"] }
duckdb = { version = "1.4.3", features = ["r2d2", "chrono"] }
validator = { version = "0.18", features = ["derive"] }
thiserror = "2.0.3"

Expand Down
26 changes: 19 additions & 7 deletions applications/datamanager/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,18 @@
FROM lukemathwalker/cargo-chef:0.1.72-rust-1.89.0-slim AS chef

# Note: Checksum verification omitted as DuckDB does not publish official checksums; relying on HTTPS for transport security
Comment thread
forstmeier marked this conversation as resolved.
RUN apt-get update && apt-get install -y --no-install-recommends \
pkg-config \
libssl-dev \
build-essential \
wget \
unzip \
&& wget -q https://github.com/duckdb/duckdb/releases/download/v1.4.3/libduckdb-linux-amd64.zip \
&& unzip libduckdb-linux-amd64.zip -d /usr/local \
&& rm libduckdb-linux-amd64.zip \
&& ldconfig \
&& apt-get purge -y wget unzip \
&& apt-get autoremove -y \
&& rm -rf /var/lib/apt/lists/*
Comment thread
forstmeier marked this conversation as resolved.

RUN rustup toolchain install stable
Expand All @@ -14,9 +23,7 @@ WORKDIR /app

FROM chef AS planner

COPY applications/datamanager/ applications/datamanager/

COPY Cargo.toml Cargo.lock ./
COPY Cargo.toml Cargo.lock ./

COPY applications/datamanager/Cargo.toml ./applications/datamanager/Cargo.toml

Expand All @@ -41,12 +48,17 @@ RUN --mount=type=cache,target=/usr/local/cargo/registry \
cargo build --release --bin datamanager && \
cp /app/target/release/datamanager /tmp/datamanager

FROM debian:trixie-slim AS server
FROM debian:trixie-slim AS server

RUN apt-get update && apt-get install -y --no-install-recommends \
ca-certificates openssl && \
update-ca-certificates && \
rm -rf /var/lib/apt/lists/*
ca-certificates \
openssl \
&& update-ca-certificates \
&& rm -rf /var/lib/apt/lists/*

COPY --from=chef /usr/local/lib/libduckdb.so /usr/local/lib/libduckdb.so

RUN ldconfig

ENV SSL_CERT_FILE=/etc/ssl/certs/ca-certificates.crt

Expand Down