Compile inside Docker container
Answered
Does IntelliJ allow me to compile inside a Docker container? I know deployment and debugging is supported, but I would like to have all compile dependencies in a docker container and compile my application (Rust, Typescript, etc.) inside a Docker container, but triggered through build/compile command from IntelliJ.
The reasoning for this is: I would like to ensure that the compile is on the same target architecture (Amazon Linux) as will be later executed, and in the case of Rust I can't compile on Mac or Windows and have it run on Amazon Linux. I want the IDE (IntelliJ) run on Mac or Windows but the actual build be on Docker.
Please sign in to leave a comment.
It's not supported by IntelliJ IDEA, please vote for the related request at https://youtrack.jetbrains.com/issue/IDEA-110822.
The following issue seems to be more relevant to this question:
IDEA-220778 - Dockerized full development environment
But there seems to be no progress with any of the linked issues / feature requests. It looks like this is going to be a common way to setup the local development environment. VS Code already supports it...
Any plans to start supporting it?
@Yinona there are plans to introduce similar feature at the 2020.1 release.
Maybe I'm missing something, but couldn't one just mount a volume in docker and use IntelliJ normally on that volume?
This will not use Docker JDK and environment for building and running projects.