bpmct / jetbrains-indexer

Generate & package JetBrains shared indexes with a Docker container.
https://coder.com/blog/faster-jetbrains-ides-with-shared-indexes
MIT License
25 stars 12 forks source link

Pass -Xmx in convenient way #13

Open cherry-ninja opened 2 years ago

cherry-ninja commented 2 years ago

Hello,

I've tried a lot of JVM and Gradle env vars to pass my own Xmx, because index tool fails each time on the last indexing step. In the end I found that this param is hardcoded in idea/bin/idea64.vmoptions file. Now I have to substitute desired Xmx value there during building the image. Could you pls give your users a convenient way to setup this param as ENV var?

Thank you in advance!

bpmct commented 2 years ago

I will look into it, thanks for sharing your progress! Specifying this via an environment would be awesome. It may require some sed magic during runtime in the entrypoint script.

Contributions are also welcome :)