Skip to content

Commit

Permalink
#hubble-271: fixed ci docker test
Browse files Browse the repository at this point in the history
  • Loading branch information
sreuland committed Jun 7, 2024
1 parent 299a689 commit 6d627fb
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions exp/services/ledgerexporter/docker/start
Original file line number Diff line number Diff line change
Expand Up @@ -17,23 +17,26 @@ files_per_partition="${FILES_PER_PARTITION:-64000}"

# Generate TOML configuration
cat <<EOF > config.toml
network = "${NETWORK}"
network_name = "${NETWORK}"
[datastore_config]
type = "GCS"
[datastore_config.params]
destination_bucket_path = "${ARCHIVE_TARGET}"
[exporter_config]
[datastore_config.schema]
ledgers_per_file = $ledgers_per_file
files_per_partition = $files_per_partition
[stellar_core_config]
preconfigured_network = "pubnet"
EOF

# Check if START or END variables are set
if [[ -n "$START" || -n "$END" ]]; then
echo "START: $START END: $END"
/usr/bin/ledgerexporter --config-file config.toml --start $START --end $END
/usr/bin/ledgerexporter scan-and-fill --config-file config.toml --start $START --end $END
else
echo "Error: No ledger range provided."
exit 1
Expand Down

0 comments on commit 6d627fb

Please sign in to comment.