Skip to content

Commit

Permalink
exp/services/ledgerexporter: Streamline docker setup (#5348)
Browse files Browse the repository at this point in the history
  • Loading branch information
urvisavla authored Jun 14, 2024
1 parent 4579697 commit d62fa1d
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 52 deletions.
8 changes: 3 additions & 5 deletions exp/services/ledgerexporter/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,10 @@ docker-test: docker-clean

# Run the ledger-exporter
$(SUDO) docker run --platform linux/amd64 -t --network test-network\
-e NETWORK=pubnet \
-e ARCHIVE_TARGET=exporter-test/test-subpath \
-e START=1000 \
-e END=2000 \
-v ${PWD}/exp/services/ledgerexporter/docker/config.test.toml:/config.toml \
-e STORAGE_EMULATOR_HOST=http://fake-gcs-server:4443 \
$(DOCKER_IMAGE):$(VERSION)
$(DOCKER_IMAGE):$(VERSION) \
scan-and-fill --start 1000 --end 2000

$(MAKE) docker-clean

Expand Down
7 changes: 2 additions & 5 deletions exp/services/ledgerexporter/docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,9 @@ RUN echo "deb https://apt.stellar.org focal unstable" >/etc/apt/sources.list.d/S
RUN apt-get update && apt-get install -y stellar-core=${STELLAR_CORE_VERSION}
RUN apt-get clean

COPY exp/services/ledgerexporter/docker/start /

RUN ["chmod", "+x", "/start"]

COPY --from=builder /go/bin/ledgerexporter /usr/bin/ledgerexporter

ENTRYPOINT ["/start"]
ENTRYPOINT ["/usr/bin/ledgerexporter"]

CMD ["--help"]

13 changes: 13 additions & 0 deletions exp/services/ledgerexporter/docker/config.test.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
[datastore_config]
type = "GCS"

[datastore_config.params]
destination_bucket_path = "exporter-test/ledgers/testnet"

[datastore_config.schema]
ledgers_per_file = 1
files_per_partition = 64000

[stellar_core_config]
network = "testnet"

42 changes: 0 additions & 42 deletions exp/services/ledgerexporter/docker/start

This file was deleted.

0 comments on commit d62fa1d

Please sign in to comment.