Download and setup within a docker image
Within a docker image I need to be able download Webstorm (ideally the latest), import settings (and hopefully plugins as well?), and set my license. Is there a way to do all of this via a command line? That way when I spin up my image for the first time the IDE is set up and ready for me to use? I know that I can do all of this manually but I'm hoping to avoid that if possible.
Thank you!
Christoph
请先登录再写评论。
We don't have a command line for this use case.
You could use one of the below ways to setup settings:
* Log in to your JetBrains Account in the activation dialog and use the Backup and Sync feature (https://www.jetbrains.com/help/idea/sharing-your-ide-settings.html#-vhul9s_170) to sync settings into this instance.
* Copy your configured IDE config folder ~/.config/JetBrains/<product><version> , plugin folder ~/.local/share/JetBrains/<product><version> and ~/.java into the docker environment. Make sure to not share these files into the public because they can include license info and some sensitive info.
See here for the details about the IDE config and plugin folders: https://www.jetbrains.com/help/idea/directories-used-by-the-ide-to-store-settings-caches-plugins-and-logs.html#config-directory
That helps a great deal! Thank you very much!
One final question – I know I can use
wget
to download a particular version of Webstorm. Is there a link to download whatever the most recent version might be? Or would that be a bad idea because it could conflict with the IDE's config and plugin folders?> Or would that be a bad idea because it could conflict with the IDE's config and plugin folders?
I think it's fine.
The current download link will download a file named WebStorm-2024.3.1.1.tar.gz. You can get the major version 2024.3 from the file name. For example, you can use a script to extract the file name string between the - and the second . to get the major version.
WebStorm uses the major version for the config/setting folder.
For example, for 2024.3.x, the config folder is ~/.config/JetBrains/WebStorm2024.3
Thank you again for your response! I really appreciate it. I think I now know my way forward!
In each of those directories (e.g., .local, .cache, et. al.), will I need to keep only the Webstorm* directories? Or will I need the Toolbox directories as well?
Ok, so I tried to keep those directories (.local, .config, .cache, and .java) when downloading and extracting the latest webstorm. Whenever I tried to run it (using the `bin/webstorm` binary, it would trigger a core dump. I tried renaming each of those directories in turn before trying again but each time there was a core dump. The only time it actually worked was when all 4 directories were gone. Is there something in one of those directories that might be causing that such that all subsequent attempts are tainted?
Could you please share the core dump output/files for investigating your issue? If you have any files named java_error* in your home folder, please share them too.
You can upload these files to https://uploads.jetbrains.com/ and share us the upload id.