diff --git a/Cargo.lock b/Cargo.lock index a03cddb52..6bfe5b21d 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -3022,6 +3022,35 @@ dependencies = [ "url", ] +[[package]] +name = "indexer-service-rs" +version = "1.0.0" +dependencies = [ + "anyhow", + "async-graphql", + "async-graphql-axum", + "axum 0.7.5", + "build-info", + "build-info-build", + "clap", + "graphql", + "hex-literal", + "indexer-common", + "indexer-config", + "lazy_static", + "prometheus", + "reqwest", + "serde", + "serde_json", + "sqlx", + "thegraph-core", + "thegraph-graphql-http", + "thiserror", + "tokio", + "tracing", + "tracing-subscriber", +] + [[package]] name = "indexer-tap-agent" version = "1.0.0" @@ -5169,35 +5198,6 @@ dependencies = [ "syn 2.0.74", ] -[[package]] -name = "service" -version = "1.0.0" -dependencies = [ - "anyhow", - "async-graphql", - "async-graphql-axum", - "axum 0.7.5", - "build-info", - "build-info-build", - "clap", - "graphql", - "hex-literal", - "indexer-common", - "indexer-config", - "lazy_static", - "prometheus", - "reqwest", - "serde", - "serde_json", - "sqlx", - "thegraph-core", - "thegraph-graphql-http", - "thiserror", - "tokio", - "tracing", - "tracing-subscriber", -] - [[package]] name = "sha-1" version = "0.9.8" diff --git a/Dockerfile.indexer-service-rs b/Dockerfile.indexer-service-rs index b07c82eef..64c071d83 100644 --- a/Dockerfile.indexer-service-rs +++ b/Dockerfile.indexer-service-rs @@ -6,7 +6,7 @@ COPY . . # Force SQLx to use the offline mode to statically check the database queries against # the prepared files in the `.sqlx` directory. ENV SQLX_OFFLINE=true -RUN cargo build --release --bin service +RUN cargo build --release --bin indexer-service-rs ######################################################################################## @@ -15,6 +15,6 @@ FROM debian:bookworm-slim RUN apt-get update && apt-get install -y --no-install-recommends \ openssl ca-certificates \ && rm -rf /var/lib/apt/lists/* -COPY --from=build /root/target/release/service /usr/local/bin/service +COPY --from=build /root/target/release/indexer-service-rs /usr/local/bin/indexer-service-rs -ENTRYPOINT [ "/usr/local/bin/service" ] +ENTRYPOINT [ "/usr/local/bin/indexer-service-rs" ] diff --git a/service/Cargo.toml b/service/Cargo.toml index 5f68e253f..96ea62a0e 100644 --- a/service/Cargo.toml +++ b/service/Cargo.toml @@ -1,5 +1,5 @@ [package] -name = "service" +name = "indexer-service-rs" version = "1.0.0" edition = "2021" license = "Apache-2.0" diff --git a/service/src/main.rs b/service/src/main.rs index 034003133..30aaf2cbd 100644 --- a/service/src/main.rs +++ b/service/src/main.rs @@ -3,7 +3,7 @@ use std::process::ExitCode; -use service::service::run; +use indexer_service_rs::service::run; #[tokio::main] async fn main() -> ExitCode {