From 9578abafff9f15d8f539026fce5a4f60fccb34ba Mon Sep 17 00:00:00 2001 From: fuxiaohei Date: Wed, 27 Mar 2024 14:44:40 +0800 Subject: [PATCH] fix: deploy failed message too long --- crates/kernel/src/tasks/deploy.rs | 2 +- land-server.Dockerfile | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/crates/kernel/src/tasks/deploy.rs b/crates/kernel/src/tasks/deploy.rs index 9ccd5f08..e000228e 100644 --- a/crates/kernel/src/tasks/deploy.rs +++ b/crates/kernel/src/tasks/deploy.rs @@ -27,7 +27,7 @@ pub async fn init() -> Result<()> { let _ = deployment::mark_status( deploy_id, deployment::DeployStatus::Failed, - format!("failed: {:?}", e), + format!("failed:{}", e.to_string()), None, None, ) diff --git a/land-server.Dockerfile b/land-server.Dockerfile index 7f6f33f9..d63813fc 100644 --- a/land-server.Dockerfile +++ b/land-server.Dockerfile @@ -8,6 +8,10 @@ RUN cargo build -p land-server --release FROM debian:stable-slim WORKDIR /opt/bin/ +RUN \ + apt-get update && \ + apt-get install -y ca-certificates && \ + apt-get clean COPY --from=build /usr/src/land-server/target/release/land-server /opt/bin/land-server COPY --from=build /usr/src/land-server/wizer-v5.0.0-x86_64-linux /opt/bin/wizer EXPOSE 8840