Compare commits

...

3 Commits

Author SHA1 Message Date
0g-peterzhb
be84b7952b
Merge b352184dc6 into 8f17a7ad72 2024-10-22 14:14:56 +08:00
Bo QIU
8f17a7ad72
Fix metrics config deser (#245)
Some checks failed
abi-consistent-check / build-and-compare (push) Has been cancelled
code-coverage / unittest-cov (push) Has been cancelled
rust / check (push) Has been cancelled
rust / test (push) Has been cancelled
rust / lints (push) Has been cancelled
functional-test / test (push) Has been cancelled
2024-10-22 14:14:33 +08:00
Peter Zhang
b352184dc6 add docker support 2024-10-18 16:29:02 +08:00
7 changed files with 18 additions and 5 deletions

3
Cargo.lock generated
View File

@ -4715,9 +4715,10 @@ dependencies = [
[[package]] [[package]]
name = "metrics" name = "metrics"
version = "0.1.0" version = "0.1.0"
source = "git+https://github.com/Conflux-Chain/conflux-rust.git?rev=992ebc5483d937c8f6b883e266f8ed2a67a7fa9a#992ebc5483d937c8f6b883e266f8ed2a67a7fa9a" source = "git+https://github.com/Conflux-Chain/conflux-rust.git?rev=c4734e337c66d38e6396742cd5117b596e8d2603#c4734e337c66d38e6396742cd5117b596e8d2603"
dependencies = [ dependencies = [
"chrono", "chrono",
"duration-str",
"futures", "futures",
"influx_db_client", "influx_db_client",
"lazy_static", "lazy_static",

View File

@ -28,7 +28,7 @@ members = [
resolver = "2" resolver = "2"
[workspace.dependencies] [workspace.dependencies]
metrics = { git = "https://github.com/Conflux-Chain/conflux-rust.git", rev = "992ebc5483d937c8f6b883e266f8ed2a67a7fa9a" } metrics = { git = "https://github.com/Conflux-Chain/conflux-rust.git", rev = "c4734e337c66d38e6396742cd5117b596e8d2603" }
[patch.crates-io] [patch.crates-io]
discv5 = { path = "version-meld/discv5" } discv5 = { path = "version-meld/discv5" }

6
DockerfileStandard Normal file
View File

@ -0,0 +1,6 @@
FROM rust
VOLUME ["/data"]
COPY . .
RUN apt-get update && apt-get install -y clang cmake build-essential pkg-config libssl-dev
RUN cargo build --release
CMD ["./target/release/zgs_node", "--config", "run/config-testnet-standard.toml", "--log", "run/log_config"]

6
DockerfileTurbo Normal file
View File

@ -0,0 +1,6 @@
FROM rust
VOLUME ["/data"]
COPY . .
RUN apt-get update && apt-get install -y clang cmake build-essential pkg-config libssl-dev
RUN cargo build --release
CMD ["./target/release/zgs_node", "--config", "run/config-testnet-turbo.toml", "--log", "run/log_config"]

View File

@ -324,7 +324,7 @@ auto_sync_enabled = true
# enabled = false # enabled = false
# Interval to output metrics periodically, e.g. "10s", "30s" or "60s". # Interval to output metrics periodically, e.g. "10s", "30s" or "60s".
# report_interval = "" # report_interval = "10s"
# File name to output metrics periodically. # File name to output metrics periodically.
# file_report_output = "" # file_report_output = ""

View File

@ -336,7 +336,7 @@ auto_sync_enabled = true
# enabled = false # enabled = false
# Interval to output metrics periodically, e.g. "10s", "30s" or "60s". # Interval to output metrics periodically, e.g. "10s", "30s" or "60s".
# report_interval = "" # report_interval = "10s"
# File name to output metrics periodically. # File name to output metrics periodically.
# file_report_output = "" # file_report_output = ""

View File

@ -338,7 +338,7 @@
# enabled = false # enabled = false
# Interval to output metrics periodically, e.g. "10s", "30s" or "60s". # Interval to output metrics periodically, e.g. "10s", "30s" or "60s".
# report_interval = "" # report_interval = "10s"
# File name to output metrics periodically. # File name to output metrics periodically.
# file_report_output = "" # file_report_output = ""