项目作者: Lumunix

项目描述 :
IntelliJ IDEA IDE in a docker container
高级语言: Dockerfile
项目地址: git://github.com/Lumunix/IntelliJ-IDEA-Docker.git
创建时间: 2021-04-20T01:27:40Z
项目社区:https://github.com/Lumunix/IntelliJ-IDEA-Docker

开源协议:MIT License

下载


IntelliJ-IDEA-Docker

Project-Banner

About

IntelliJ IDEA IDE Community Edition IDE in a docker container. Provides a full Java IDE in a docker container with Open JDK.

Usage

Windows:

  1. Install Docker/Compose. You must have Docker and Compose installed to run your Jekyll project in Docker.

  2. Install GWSL. GWSL handles running XServer on top of WSL. (Graphical Windows Subsystem for Linux)

  3. Using GWSL, navigate to the folder you downloaded the project to, build the docker image.

  1. docker build -t lumunix/intellij-idea-docker .
  1. Using GWSL, navigate to the /windows folder, run docker compose to start Intellij
  1. docker-compose up

macOs:

  1. Install Docker/Compose. You must have Docker and Compose installed to run your Jekyll project in Docker.

  2. Install Homebrew using Terminal

    1. ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
  3. Using Terminal, install Socat with homebrew

  1. brew install socat
  1. Using Terminal install xquartz with homebrew

    1. brew install xquartz
  2. Open Xquartz, in the Preferences of the xQuartz app in the Security tab, check allow connections from network clients

    1. open -a Xquartz

    x11 Zquartz Preferences

  3. Using Terminal, navigate to the folder you downloaded the project to, build the docker image.

    1. docker build -t lumunix/intellij-idea-docker .
  4. Run Socat

    1. socat TCP-LISTEN:6000,reuseaddr,fork UNIX-CLIENT:\"$DISPLAY\"
  5. Using Terminal, navigate to the [Repo Directory]/macOs folder, run this command, you will get a inet ip address, add the IP address to the .env file as follows.

    1. ifconfig | grep "inet " | grep -v 127.0.0.1 | cut -d\ -f2
  1. XSERVEIP=<YOUR IP FROM IFCONFIG>
  1. Using Terminal, navigate to the [Repo Directory]/macOs folder, run docker compose to start Intellij
  1. docker-compose up