-
Notifications
You must be signed in to change notification settings - Fork 37
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
Add dockerize to Dockerfile for grpc-server #376
Conversation
|
||
ENV SCALARDB_SERVER_OPTS -Dlog4j.configurationFile=file:log4j2.properties | ||
|
||
ENTRYPOINT ["./bin/scalardb-server"] | ||
CMD ["--config", "database.properties"] | ||
CMD ["./bin/scalardb-server", "--config", "database.properties"] |
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.
To support backward compatibility
@miseyu Thank you! Is this needed for the scalability test? |
@feeblefakie |
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.
LGTM! Thank you!
server/Dockerfile
Outdated
WORKDIR /scalardb/server | ||
|
||
COPY log4j2.properties . | ||
# Support for use cases where environment variables are used to configure the database |
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.
# Support for use cases where environment variables are used to configure the database | |
# Support use cases where environment variables are used to configure the database |
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 have corrected the problem.
b66edbc
server/README.md
Outdated
@@ -41,6 +41,9 @@ $ docker run -v <your local configuration file path>:/scalardb/server/database.p | |||
# For custom log configuration | |||
$ docker run -v <your local configuration file path>:/scalardb/server/database.properties -v <your custom log4j2 configuration file path>:/scalardb/server/log4j2.properties -d -p 60051:60051 -p 8080:8080 ghcr.io/scalar-labs/scalardb-server:<version> | |||
|
|||
# For set in environment variables |
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.
# For set in environment variables | |
# Use environment variables |
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 have corrected the problem.
b66edbc
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.
LGTM! Thank you!
31b6833
to
b66edbc
Compare
@feeblefakie |
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.
LGTM! Thank you!
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.
LGTM! Thank you!
Summary
Why?
Usage