diff --git a/crates/fuel-data-historical-publisher/src/main.rs b/crates/fuel-data-historical-publisher/src/main.rs new file mode 100644 index 0000000..2cc18b4 --- /dev/null +++ b/crates/fuel-data-historical-publisher/src/main.rs @@ -0,0 +1,12 @@ +use clap::Parser; + +#[derive(Clone, Parser)] +pub struct Cli { + #[command(flatten)] + pub fuel_core_config: fuel_core_bin::cli::run::Command, +} + +#[tokio::main] +async fn main() -> anyhow::Result<()> { + Ok(()) +} diff --git a/docker/fuel-data-publisher.Dockerfile b/docker/fuel-data-historical-publisher.Dockerfile similarity index 90% rename from docker/fuel-data-publisher.Dockerfile rename to docker/fuel-data-historical-publisher.Dockerfile index 905b8f2..5a65f49 100644 --- a/docker/fuel-data-publisher.Dockerfile +++ b/docker/fuel-data-historical-publisher.Dockerfile @@ -38,7 +38,7 @@ RUN \ --mount=type=cache,target=/usr/local/cargo/registry/cache \ --mount=type=cache,target=/usr/local/cargo/git/db \ --mount=type=cache,target=/build/target \ - xx-cargo chef cook --release --no-default-features -p fuel-data-publisher --recipe-path recipe.json + xx-cargo chef cook --release --no-default-features -p fuel-data-historical-publisher --recipe-path recipe.json # Up to this point, if our dependency tree stays the same, # all layers should be cached. COPY . . @@ -48,10 +48,10 @@ RUN \ --mount=type=cache,target=/usr/local/cargo/registry/cache \ --mount=type=cache,target=/usr/local/cargo/git/db \ --mount=type=cache,target=/build/target \ - xx-cargo build --release --no-default-features -p fuel-data-publisher \ - && xx-verify ./target/$(xx-cargo --print-target-triple)/release/fuel-data-publisher \ - && cp ./target/$(xx-cargo --print-target-triple)/release/fuel-data-publisher /root/fuel-data-publisher \ - && cp ./target/$(xx-cargo --print-target-triple)/release/fuel-data-publisher.d /root/fuel-data-publisher.d + xx-cargo build --release --no-default-features -p fuel-data-historical-publisher \ + && xx-verify ./target/$(xx-cargo --print-target-triple)/release/fuel-data-historical-publisher \ + && cp ./target/$(xx-cargo --print-target-triple)/release/fuel-data-historical-publisher /root/fuel-data-historical-publisher \ + && cp ./target/$(xx-cargo --print-target-triple)/release/fuel-data-historical-publisher.d /root/fuel-data-historical-publisher.d # Stage 2: Run FROM ubuntu:22.04 AS run @@ -96,8 +96,8 @@ RUN apt-get update -y \ && apt-get clean -y \ && rm -rf /var/lib/apt/lists/* -COPY --from=builder /root/fuel-data-publisher . -COPY --from=builder /root/fuel-data-publisher.d . +COPY --from=builder /root/fuel-data-historical-publisher . +COPY --from=builder /root/fuel-data-historical-publisher.d . COPY /cluster/chain-config ./chain-config EXPOSE ${PORT} @@ -107,7 +107,7 @@ EXPOSE ${TELEMETRY_PORT} # https://stackoverflow.com/a/44671685 # https://stackoverflow.com/a/40454758 # hadolint ignore=DL3025 -CMD exec ./fuel-data-publisher \ +CMD exec ./fuel-data-historical-publisher \ --service-name "${SERVICE_NAME}" \ --nats-url $NATS_URL \ --keypair $KEYPAIR \ diff --git a/helm/fuel-data-publisher/Chart.yml b/helm/fuel-data-historical-publisher/Chart.yml similarity index 94% rename from helm/fuel-data-publisher/Chart.yml rename to helm/fuel-data-historical-publisher/Chart.yml index 2023412..f3e4be2 100644 --- a/helm/fuel-data-publisher/Chart.yml +++ b/helm/fuel-data-historical-publisher/Chart.yml @@ -1,6 +1,6 @@ apiVersion: v2 -name: fuel-data-publisher -description: A Helm chart for Kubernetes deployment of the Fuel Data Publisher +name: fuel-data-historical-publisher +description: A Helm chart for Kubernetes deployment of the Fuel Data Historical Publisher # A chart can be either an 'application' or a 'library' chart. # # Application charts are a collection of templates that can be packaged into versioned archives diff --git a/helm/fuel-data-publisher/values.yml b/helm/fuel-data-historical-publisher/values.yml similarity index 88% rename from helm/fuel-data-publisher/values.yml rename to helm/fuel-data-historical-publisher/values.yml index 22b1e69..3d4b014 100644 --- a/helm/fuel-data-publisher/values.yml +++ b/helm/fuel-data-historical-publisher/values.yml @@ -1,9 +1,9 @@ -# Default values for fuel-data-publisher +# Default values for fuel-data-historical-publisher replicaCount: 1 image: - repository: ghcr.io/fuellabs/fuel-data-publisher + repository: ghcr.io/fuellabs/fuel-data-historical-publisher pullPolicy: IfNotPresent imagePullSecrets: []