Skip to content

Commit 7200ebb

Browse files
committed
update ui log component & remove auto retry
1 parent 11f3baa commit 7200ebb

28 files changed

Lines changed: 1499 additions & 554 deletions

Cargo.lock

Lines changed: 6 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ russh = "0.61.2"
6767
tower-http = "0.7.0"
6868
tower = "0.5.3"
6969
tower-sessions = { version = "0.15", features = ["memory-store"] }
70-
time = { version = "0.3.47", features = ["serde"] }
70+
time = { version = "0.3.49", features = ["serde"] }
7171
lettre = { version = "0.11", default-features = false, features = [
7272
"builder",
7373
"smtp-transport",
@@ -82,7 +82,7 @@ sea-orm-migration = "1.1.20"
8282

8383
#====
8484
rand = "0.10.1"
85-
smallvec = "1.15.1"
85+
smallvec = "1.15.2"
8686
bytes = "1.11.1"
8787
chrono = { version = "0.4.45", features = ["serde"] }
8888
hex = "0.4.3"
@@ -124,7 +124,7 @@ bs58 = "0.5.1"
124124
indexmap = "2.14"
125125
envsubst = "0.2.1"
126126
directories = "6.0.0"
127-
redis = "1.2.2"
127+
redis = "1.2.3"
128128
redis-test = "1.0.4"
129129
rustls = "0.23"
130130
object_store = "0.13.2"

mono/Dockerfile

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ WORKDIR /opt/mega
2222
ARG TARGETARCH
2323

2424
COPY Cargo.toml ./
25+
COPY Cargo.lock ./
2526
COPY api-model/Cargo.toml api-model/
2627
COPY ceres/Cargo.toml ceres/
2728
COPY common/Cargo.toml common/
@@ -74,13 +75,13 @@ RUN --mount=type=cache,target=/usr/local/cargo/registry,id=mega-cargo-registry-$
7475

7576
COPY . .
7677

77-
# Persist built binary into the image layer (buildkit cache mounts evaporate after build).
78+
# Build the binary into the SAME target dir cargo-chef cooked into
79+
# (/opt/mega/target). Reusing that dir means the cooked dependency artifacts
80+
# from the cook layer are picked up, so only the mono crate itself is compiled
81+
# here instead of the whole dependency graph.
7882
RUN --mount=type=cache,target=/usr/local/cargo/registry,id=mega-cargo-registry-${TARGETARCH},sharing=locked \
7983
--mount=type=cache,target=/usr/local/cargo/git,id=mega-cargo-git-${TARGETARCH},sharing=locked \
80-
--mount=type=cache,target=/opt/mega/target-cache \
81-
CARGO_TARGET_DIR=/opt/mega/target-cache cargo build --profile demo -p mono && \
82-
mkdir -p /opt/mega/target/demo && \
83-
cp /opt/mega/target-cache/demo/mono /opt/mega/target/demo/mono
84+
cargo build --locked --profile demo -p mono
8485

8586
# ────── Stage 3: Runtime ──────
8687
FROM debian:trixie-slim

moon/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ node_modules
55
.pnp
66
.pnp.js
77
dist
8+
*.tsbuildinfo
89

910
# testing
1011
coverage

moon/Caddyfile

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
# Next.js dev already owns port 80, so don't let Caddy bind it for
3+
# the HTTP->HTTPS redirect vhost.
4+
auto_https disable_redirects
5+
}
6+
7+
https://local.xuanwu.openatom.cn {
8+
tls ./local.xuanwu.openatom.cn.pem ./local.xuanwu.openatom.cn-key.pem
9+
reverse_proxy 127.0.0.1:80
10+
}

0 commit comments

Comments
 (0)