Skip to content

Commit

Permalink
Merge branch 'master' into cdp-integration
Browse files Browse the repository at this point in the history
  • Loading branch information
chowbao authored Apr 19, 2024
2 parents e8b009d + 573019d commit 04ac6c8
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion cmd/export_ledger_entry_changes_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {

Expand Down
3 changes: 3 additions & 0 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,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 []

Expand Down
6 changes: 3 additions & 3 deletions internal/utils/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -657,7 +657,7 @@ func GetEnvironmentDetails(isTest bool, isFuture bool, datastoreUrl string) (det
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"
// TODO: change exporter-test to the real bucket whatever that is
details.StorageURL = datastoreUrl
return details
Expand All @@ -666,15 +666,15 @@ func GetEnvironmentDetails(isTest bool, isFuture bool, datastoreUrl string) (det
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"
details.StorageURL = datastoreUrl
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"
details.StorageURL = datastoreUrl
return details
}
Expand Down

0 comments on commit 04ac6c8

Please sign in to comment.