Skip to content

Commit

Permalink
tracing
Browse files Browse the repository at this point in the history
  • Loading branch information
dndll committed Mar 27, 2024
1 parent dc427e9 commit 8a76aff
Show file tree
Hide file tree
Showing 16 changed files with 294 additions and 148 deletions.
107 changes: 96 additions & 11 deletions Cargo.lock

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

26 changes: 15 additions & 11 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,21 @@ members = [ "bin/*", "crates/*", "nearx" ]
resolver = "2"

[workspace.dependencies]
anyhow = "1.0"
async-trait = "0.1"
config = "0.13"
derive_more = "0.99"
either = { version = "1.9", features = [ "serde" ] }
itertools = "0.12"
log = "0.4"
pretty_assertions = "1.4"
pretty_env_logger = "0.5"
sled = "0.34" # TODO: maybe heavy, use heed instead
thiserror = "1.0"
anyhow = "1.0"
async-trait = "0.1"
config = "0.13"
derive_more = "0.99"
dotenv = "0.15"
either = { version = "1.9", features = [ "serde" ] }
figment = { version = "0.10", features = [ "toml", "env" ] }
itertools = "0.12"
log = "0.4"
pretty_assertions = "1.4"
pretty_env_logger = "0.5"
sled = "0.34" # TODO: maybe heavy, use heed instead
thiserror = "1.0"
tracing = "0.1"
tracing-subscriber = "0.3"

# Async
axum = "*"
Expand Down
5 changes: 3 additions & 2 deletions Dockerfile.operator
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,9 @@ RUN cp target/release/nearx-operator /near/near-light-client
FROM debian:bookworm-slim
RUN apt-get update && apt-get install -y openssl libssl-dev pkg-config ca-certificates && rm -rf /var/lib/apt/lists/*
COPY --from=build /near/target/release/nearx-operator /usr/local/bin
COPY --from=build /near/default.toml /var/near-light-client/default.toml
COPY --from=build /near/config.toml /var/near-light-client/config.toml

ENV NEAR_LIGHT_CLIENT_DIR=/var/near-light-client/
ENV NEAR_LIGHT_CLIENT_DIR=/var/near-light-client
ENV NEAR_LIGHT_CLIENT_CONFIG_FILE=/var/near-light-client/config.toml

ENTRYPOINT ["/usr/local/bin/nearx-operator"]
7 changes: 4 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
.EXPORT_ALL_VARIABLES:
-include .env

TAG_PREFIX?=near
IMAGE_TAG?=0.0.3
TAG_PREFIX?=us-docker.pkg.dev/pagoda-solutions-dev/rollup-data-availability/
IMAGE_TAG?=dev

docker:
DOCKER_BUILDKIT=1 docker build --progress=plain -t $(TAG_PREFIX)/light-client:$(IMAGE_TAG) .
DOCKER_BUILDKIT=1 docker build --progress=plain -t $(TAG_PREFIX)/light-client:$(IMAGE_TAG) -f Dockerfile.offchain .
docker build -t $(TAG_PREFIX)/nearx-operator:$(IMAGE_TAG) -f Dockerfile.operator .

test:
cargo test --workspace
Expand Down
40 changes: 20 additions & 20 deletions bin/operator/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,26 +7,26 @@ version.workspace = true
[lib]

[dependencies]
actix = { version = "*", features = [ "macros" ] }
anyhow.workspace = true
config.workspace = true
futures.workspace = true
hashbrown = { version = "*", features = [ "serde" ] }
hex.workspace = true
http-cache-reqwest = "0.13.0"
jsonrpsee = { version = "0.22.1", features = [ "server", "macros" ] }
jsonrpsee-core = "0.22.1"
log.workspace = true
pretty_env_logger.workspace = true
priority-queue = "*"
reqwest-middleware = "*"
reqwest-retry = "*"
reqwest.workspace = true
serde.workspace = true
serde_json.workspace = true
thiserror.workspace = true
tokio.workspace = true
uuid = { version = "1.4.1", features = [ "serde", "v4" ] }
actix = { version = "*", features = [ "macros" ] }
anyhow.workspace = true
figment.workspace = true
futures.workspace = true
hashbrown = { version = "*", features = [ "serde" ] }
hex.workspace = true
http-cache-reqwest = "0.13.0"
jsonrpsee = { version = "0.22.1", features = [ "server", "macros" ] }
jsonrpsee-core = "0.22.1"
priority-queue = "*"
reqwest-middleware = "*"
reqwest-retry = "*"
reqwest.workspace = true
serde.workspace = true
serde_json.workspace = true
thiserror.workspace = true
tokio.workspace = true
tracing-subscriber.workspace = true
tracing.workspace = true
uuid = { version = "1.4.1", features = [ "serde", "v4" ] }

alloy = { git = "https://github.com/alloy-rs/alloy.git", features = [ "contract", "provider-http" ] }

Expand Down
Loading

0 comments on commit 8a76aff

Please sign in to comment.