Skip to content

armgit / dbx

Public Imported from GitHub
0

25 MB lightweight cross-platform database client for 100+ databases, including MySQL, PostgreSQL, SQLite, Redis, MongoDB, DuckDB, SQL Server, and Dameng. Built-in AI, MCP Server, CLI, desktop and Docker. | 轻量级跨平台数据库管理工具,支持 MySQL、PostgreSQL、SQLite、Redis、MongoDB、达梦等 100+ 数据库,提供桌面端、Docker、CLI、内置 AI 助手和 MCP。

fix: add font runtime deps to docker image

t8y27a93e69d7b47
diff --git a/crates/dbx-web/src/routes/connection.rs b/crates/dbx-web/src/routes/connection.rs
index 5790a9486f..333c127979 100644
--- a/crates/dbx-web/src/routes/connection.rs
+++ b/crates/dbx-web/src/routes/connection.rs
@@ -164,6 +164,12 @@ mod tests {
sysdba: false,
oracle_connection_type: None,
connection_string: None,
+ redis_connection_mode: None,
+ redis_sentinel_master: String::new(),
+ redis_sentinel_nodes: String::new(),
+ redis_sentinel_username: String::new(),
+ redis_sentinel_password: String::new(),
+ redis_sentinel_tls: false,
external_config: None,
jdbc_driver_class: None,
jdbc_driver_paths: Vec::new(),
diff --git a/deploy/Dockerfile b/deploy/Dockerfile
index bfacf1ef82..edf9518593 100644
--- a/deploy/Dockerfile
+++ b/deploy/Dockerfile
@@ -17,20 +17,11 @@ WORKDIR /app
RUN dpkg --add-architecture arm64 \
&& apt-get update && apt-get install -y --no-install-recommends \
build-essential cmake pkg-config perl python3-pip gcc-aarch64-linux-gnu \
- unixodbc-dev \
libfontconfig-dev:arm64 libfreetype-dev:arm64 \
&& pip3 install --break-system-packages ziglang \
&& cargo install cargo-zigbuild \
&& rustup target add x86_64-unknown-linux-gnu aarch64-unknown-linux-gnu \
- && rm -rf /var/lib/apt/lists/* \
- && mkdir -p /tmp/arm64-odbc && cd /tmp/arm64-odbc \
- && curl -sLO http://deb.debian.org/debian/pool/main/u/unixodbc/libodbc2_2.3.11-2+deb12u1_arm64.deb \
- && curl -sLO http://deb.debian.org/debian/pool/main/u/unixodbc/libodbcinst2_2.3.11-2+deb12u1_arm64.deb \
- && curl -sLO http://deb.debian.org/debian/pool/main/u/unixodbc/unixodbc-dev_2.3.11-2+deb12u1_arm64.deb \
- && dpkg -x libodbc2_*.deb / \
- && dpkg -x libodbcinst2_*.deb / \
- && dpkg -x unixodbc-dev_*.deb / \
- && rm -rf /tmp/arm64-odbc
+ && rm -rf /var/lib/apt/lists/*
# Copy dependency manifests only and create dummy sources to pre-compile dependencies.
# This layer is cached by GHA as long as Cargo.toml/Cargo.lock don't change.
@@ -80,7 +71,13 @@ RUN case "$TARGETARCH" in \
# Stage 3: Final image
FROM debian:bookworm-slim
ARG TARGETPLATFORM
-RUN apt-get update && apt-get install -y --no-install-recommends ca-certificates libssl3 unixodbc && rm -rf /var/lib/apt/lists/*
+RUN apt-get update && apt-get install -y --no-install-recommends \
+ ca-certificates \
+ fontconfig \
+ fonts-dejavu-core \
+ libfreetype6 \
+ libssl3 \
+ && rm -rf /var/lib/apt/lists/*
COPY --from=backend /out/${TARGETPLATFORM}/dbx-web /usr/local/bin/
COPY --from=frontend /app/dist /app/static
ENV DBX_STATIC_DIR=/app/static
diff --git a/src-tauri/build.rs b/src-tauri/build.rs
index 61b288e356..d860e1e6a7 100644
--- a/src-tauri/build.rs
+++ b/src-tauri/build.rs
@@ -1,11 +1,3 @@
fn main() {
- #[cfg(target_os = "macos")]
- {
- let manifest_dir = std::env::var("CARGO_MANIFEST_DIR").unwrap_or_else(|_| ".".to_string());
- let has_dylibs = std::path::Path::new(&manifest_dir).join("libodbc.2.dylib").exists();
- if !has_dylibs && std::env::var("TAURI_CONFIG").is_err() {
- std::env::set_var("TAURI_CONFIG", r#"{"bundle":{"macOS":{"frameworks":[]}}}"#);
- }
- }
tauri_build::build()
}