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) { 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 [] 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 } }