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
Allow specifying VM options when running RSKj in docker container #1998
Conversation
fb3eab7
to
13f084a
Compare
pipeline:run |
6b00b44
to
68f03f6
Compare
Hi! In principle, I'm against the PR. The idea I had in mind when I originally added this was to provide an easy way for users to run a fullnode. It wasn't intended as a dev tool. Regarding what you want to achieve, there are several ways:
That being said, if this approach is insisted on, I'd like to see it working for all the examples in the README at https://hub.docker.com/r/rsksmart/rskj , and a new README will be needed for the new options: not just Finally, if |
@lucasvuotto , hmm, I guess this is a good point. What we're trying to achieve is having minimum heap size allocated, but probably it's no need to have an upper boundary. Generally speaking, size of heap memory being allocated to a java process is underlaying system dependant, so if no vm options overwrite that the java process can get quite small amount of ram to operate with, eg. 1gb or alike. For example, ubuntu with java11 and 8gb of RAM on board allocates by default just 1.88gb to a java process, which may not be enough for RSKj to operate. btw. there are min hardware requirements here. |
Kudos, SonarCloud Quality Gate passed! |
pipeline:run |
3f3b776
to
3266c40
Compare
Kudos, SonarCloud Quality Gate passed! |
Description
Allow JAVA_OPTS env variable when running docker container.
Motivation and Context
In the rskj repo we have a GitHub workflow that builds and pushes a docker image to DockerHub. Here’s a docker file for that
As of now, only a specific set of sys args is specified in the entrypoint statement and there’s no way to override or add extra vm args, eg. -Xmx or -Xss.
The idea is to define an env. var. in the Dockerfile, which would allow us to do that.
How Has This Been Tested?
Running the follwoing commands:
Types of changes
Checklist: