Skip to content

Commit

Permalink
Add empty historical-publisher
Browse files Browse the repository at this point in the history
  • Loading branch information
Jurshsmith committed Jan 13, 2025
1 parent 9734bd0 commit 111d999
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 12 deletions.
12 changes: 12 additions & 0 deletions crates/fuel-data-historical-publisher/src/main.rs
Original file line number Diff line number Diff line change
@@ -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(())
}
Original file line number Diff line number Diff line change
Expand Up @@ -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 . .
Expand All @@ -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
Expand Down Expand Up @@ -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}
Expand All @@ -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 \
Expand Down
Original file line number Diff line number Diff line change
@@ -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
Expand Down
Original file line number Diff line number Diff line change
@@ -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: []
Expand Down

0 comments on commit 111d999

Please sign in to comment.