Sign inSign up

ivonet/intellij

By ivonet

Updated over 2 years ago

Intellij docker image

Image
0

1.8K

ivonet/intellij repository overview

intellij

Web desktop docker image for: intellij

Usage

#!/usr/bin/env bash
NAME=idea
PORT=10000
WAIT=5

if [ ! "$(docker ps -q -f name=$NAME)" ]; then
  if [ "$(docker ps -aq -f status=exited -f name=$NAME)" ]; then
    echo "Starting existing idea config..."
    docker start $NAME
    sleep $WAIT
    open http://localhost:$PORT
    exit 0
  fi
  echo "Starting new idea config..."
  docker run \
    -d \
    --name $NAME \
    -p $PORT:32000 \
    -p 8080:8080 \
    -p 5901:5901 \
    -e AUTH=${AUTH:-false} \
    -e USERNAME=${USER} \
    -e PASSWORD=VeryS3cr3t \
    -e WIDTH=1920 \
    -e HEIGHT=1080 \
    -v ${HOME}/dev:/project \
    -v "${HOME}/.m2:/config/.m2" \
    -v "${HOME}/.config/${USER}/docker/JetBrains/IntelliJ/cache:/config/.cache/JetBrains" \
    -v "${HOME}/.config/${USER}/docker/JetBrains/IntelliJ/config:/config/.config/JetBrains" \
    -v "${HOME}/.config/${USER}/docker/JetBrains/IntelliJ/local:/config/.local/share/Jetbrains" \
    ivonet/intellij:2021.1.3

  sleep $WAIT
  open http://localhost:$PORT
else
  echo "Stopping idea..."
  docker stop $NAME
fi

Now open a browser en goto: http://localhost:10000 and have fun

See also

ivonet/x11webui for more information on how this image works

Tag summary

Content type

Image

Digest

sha256:0d5e8c153

Size

1.6 GB

Last updated

over 2 years ago

docker pull ivonet/intellij