From e50d7f0dc06476e2010b05b52fbc37c4ad7a316c Mon Sep 17 00:00:00 2001 From: Eduardo Alves Date: Tue, 16 Apr 2024 19:51:44 -0300 Subject: [PATCH 1/3] Changed image workdir --- docker/Dockerfile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/docker/Dockerfile b/docker/Dockerfile index 2fc7d358..b4d94368 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -20,6 +20,9 @@ WORKDIR /etl COPY --from=build /usr/local/bin/stellar-etl /usr/local/bin/stellar-etl COPY --from=build /usr/src/etl/docker docker +# changing workdir to a new path in order to use mounted empty ephemeral volumes as storage +WORKDIR /etl/data + # clear entrypoint from stellar-core image ENTRYPOINT [] From b30535ebc8816c8032559065f8613afe84b390e4 Mon Sep 17 00:00:00 2001 From: Eduardo Alves Date: Tue, 16 Apr 2024 21:23:58 -0300 Subject: [PATCH 2/3] Set CoreConfig environment detail value to a fixed reference as defined on the stellar-etl image --- internal/utils/main.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/internal/utils/main.go b/internal/utils/main.go index bd2be6ce..129aeb92 100644 --- a/internal/utils/main.go +++ b/internal/utils/main.go @@ -631,21 +631,21 @@ func GetEnvironmentDetails(isTest bool, isFuture bool) (details EnvironmentDetai details.NetworkPassphrase = network.TestNetworkPassphrase details.ArchiveURLs = testArchiveURLs details.BinaryPath = "/usr/bin/stellar-core" - details.CoreConfig = "docker/stellar-core_testnet.cfg" + details.CoreConfig = "/etl/docker/stellar-core_testnet.cfg" return details } else if isFuture { // details.NetworkPassphrase = network.FutureNetworkPassphrase details.NetworkPassphrase = "Test SDF Future Network ; October 2022" details.ArchiveURLs = futureArchiveURLs details.BinaryPath = "/usr/bin/stellar-core" - details.CoreConfig = "docker/stellar-core_futurenet.cfg" + details.CoreConfig = "/etl/docker/stellar-core_futurenet.cfg" return details } else { // default: mainnet details.NetworkPassphrase = network.PublicNetworkPassphrase details.ArchiveURLs = mainArchiveURLs details.BinaryPath = "/usr/bin/stellar-core" - details.CoreConfig = "docker/stellar-core.cfg" + details.CoreConfig = "/etl/docker/stellar-core.cfg" return details } } From 43cdcf2f1cc199ca0338de5f2e57a076106b73d7 Mon Sep 17 00:00:00 2001 From: Eduardo Alves Date: Thu, 18 Apr 2024 16:39:10 -0300 Subject: [PATCH 3/3] Set absolute reference for stellar-core config path --- cmd/export_ledger_entry_changes_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/export_ledger_entry_changes_test.go b/cmd/export_ledger_entry_changes_test.go index 8a518e1d..364c3fde 100644 --- a/cmd/export_ledger_entry_changes_test.go +++ b/cmd/export_ledger_entry_changes_test.go @@ -6,7 +6,7 @@ import ( ) const coreExecutablePath = "../stellar-core/src/stellar-core" -const coreConfigPath = "./docker/stellar-core.cfg" +const coreConfigPath = "/etl/docker/stellar-core.cfg" func TestExportChanges(t *testing.T) {