Docker for your Java Development Environment with IntelliJ

Опубликовано: 11 Октябрь 2024
на канале: MVP Java
12,914
125

Learn how to setup Docker for your Java Developer Environment with IntelliJ IDEA with a a single command! Re-create your developer environment consistently across all Linux environments without having to go through all those annoying steps like installing Java, git, maven, setting up environmental variables, custom files, network and user settings etc ..

Table Of Contents
--------------------------------------------------------------------------------------
00:00 Introduction
01:21 DockerHub and GitHub resources used
01:53 Starting IntelliJ IDE in Docker Container - DEMO
07:02 Container File Permissions with $USER
08:07 Custom Docker bind mount directories
08:39 ItelliJ Java Project Source Files - persisted
09:12 Viewing run.sh script to launch IntelliJ IDEA
09:58 Dockerfile
10:35 Re-run Docker container with IntelliJ - state persisted

I will explicitly cover IntelliJ Community Edition 2020.3 and provide a Java Developer environment with the following ...
Ubuntu version 18.04.5
Zulu OpenJDK 11.0.10-11.45.27
Maven 3.6.3
Git - via package installer (version 2.17.1)
curl - via package installer (version 7.58.0)

Of course, you have to have docker installed on your host machine!

All you need to do is git clone my repository and execute a run.sh script, that's it! The IntelliJ IDE displays and your ready to go. Here are the resource links ..

Docker Images for IntelliJ IDEA available on MVP Java's DockerHub account ..
https://hub.docker.com/repository/doc...

Dockerfile and run.sh script available on MVP Java's GitHub account ...
https://github.com/mvpjava/intelliJ-c...

All you need to do is ..
$ git clone https://github.com/mvpjava/intelliJ-c...
$ cd intelliJ-ce-idea
$ chmod 777 run.sh
$ ./run.sh

You can check out the MVP Java Blog Post
"Docker for your Java Development Environment with IntelliJ" here ..
http://mvpjava.com/docker-java-deve…r...

Here are some relevant Videos as well on Java and Docker ..
1. How to Create a Docker Image for a Java application -    • How to Create a Docker Image for a Ja...  
2. Spring Tool Suite 4 in Docker -    • Spring Tool Suite 4 in Docker  
3. Docker for your Java Development Environment (with NetBeans) -    • Docker for your Java Development Envi...  
======================================================
Subscribe to MVP Java ...
https://www.youtube.com/c/MVPJava?sub...


Follow me ...
Website : http://www.mvpjava.com

Facebook :   / mvpjava  
Twitter :   / mvpjava  
GitHub : https://github.com/mvpjava
DockerHub: https://hub.docker.com/?namespace=mvp...
My Company: http://www.triomni-it.com