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
Refactor Dockerfile and scripts #1501
Refactor Dockerfile and scripts #1501
Conversation
6cbcf1b
to
899f2bf
Compare
899f2bf
to
a933527
Compare
docker/auto-setup.sh
Outdated
|
||
wait_for_cassandra() { | ||
# TODO (alex): Remove exports | ||
export CASSANDRA_USER=$CASSANDRA_USER |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if you are exporting a variable that's already set you can just do
export CASSANDRA_USER
export CASSANDRA_PORT
etc
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would leave it as is for now and refactor later as part of TODO
above.
docker/auto-setup.sh
Outdated
export CASSANDRA_TLS_KEY=$CASSANDRA_CERT_KEY | ||
export CASSANDRA_TLS_CA=$CASSANDRA_CA | ||
|
||
{ export CASSANDRA_PASSWORD=$CASSANDRA_PASSWORD; } 2> /dev/null |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is to hide output? also just bare export CASSANDRA_PASSWORD
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
also, in another PR.
06ad5d0
to
d9b72d8
Compare
What changed?
Refactor Dockerfile and scripts.
Why?
entrypoint.sh
->auto-setup.sh
(optional),setup-develop.sh
(optional),start-temporal.sh
->exec temporal-server
./etc/temporal
instead of the root.shellcheck
.How did you test it?
Build locally and run with docker-compose.
Potential risks
RF
env was renamed toCASSANDRA_REPLICATION_FACTOR
.Is hotfix candidate?
No.