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

move config to /tmp #30

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all 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
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,4 @@ ADD confd /etc/confd
ADD entry.sh /
ENTRYPOINT ["/entry.sh"]

CMD ["/usr/local/bin/stellar-core", "run", "--conf", "/stellar-core.cfg"]
CMD ["/usr/local/bin/stellar-core", "run", "--conf", "/tmp/stellar-core.cfg"]
2 changes: 1 addition & 1 deletion Dockerfile.gcloud
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ RUN /install.gcloud.sh
ADD entry.gcloud.sh /
ENTRYPOINT ["/entry.gcloud.sh"]

CMD ["/usr/local/bin/stellar-core", "run", "--conf", "/stellar-core.cfg"]
CMD ["/usr/local/bin/stellar-core", "run", "--conf", "/tmp/stellar-core.cfg"]
2 changes: 1 addition & 1 deletion confd/conf.d/stellar-core.cfg.toml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[template]
src = "stellar-core.cfg.tmpl"
dest = "/stellar-core.cfg"
dest = "/tmp/stellar-core.cfg"
mode = "0644"
4 changes: 2 additions & 2 deletions entry.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ function stellar_core_init_db() {

echo "Initializing core db..."

stellar-core new-db --conf /stellar-core.cfg
stellar-core new-db --conf /tmp/stellar-core.cfg

echo "Finished initializing core db"

Expand All @@ -40,7 +40,7 @@ function stellar_core_init_history_archives() {

echo "Initializing history archive ${HISTORY_ARCHIVE}..."

stellar-core new-hist $HISTORY_ARCHIVE --conf /stellar-core.cfg
stellar-core new-hist $HISTORY_ARCHIVE --conf /tmp/stellar-core.cfg

echo "Finished initializing history archive ${HISTORY_ARCHIVE}."

Expand Down