Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/change workdir #238

Merged
merged 4 commits into from
Apr 18, 2024
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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 []

Expand Down
6 changes: 3 additions & 3 deletions internal/utils/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}
Expand Down
Loading