Skip to content

Israiloff/lvim-java-ide-container

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

65 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Docker Hub

Docker Image Version (latest semver)

LunarVim Java IDE Docker Container Project Documentation

Overview

This Dockerfile configures a container for Java development using LunarVim on an Alpine Linux base. It's tailored for a Python 3 environment, enhanced with Java Development Kit (JDK) and other essential development tools.

Dockerfile Description

Base Image and JDK Configuration

  • Python Alpine Base: Uses Python Alpine image; Python version defined by PYTHON_VERSION.
  • JDK Version Argument: JDK version is set with JDK_VERSION.

System Preparation

  • Updates and upgrades the package manager, sets Bash as the default shell.

Dependencies Installation

  • Installs utilities (zip, unzip, curl, git), OpenJDK, Maven, Make, G++, npm, and others.
  • Installs neovim for LunarVim and fontconfig for fonts.
  • Installs links web browser.

Rust Configuration

  • Installs and configures Rust, adding tools like ripgrep and fd-find.

LunarVim Setup

  • Installs LunarVim; customizes configuration for Java IDE.
  • Clones and sets up Java development tools (eclipse.jdt.ls, java-debug, vscode-java-test).
  • Downloads Lombok and configures fonts.

LunarVim and Zsh Update

  • Updates LunarVim configuration.
  • Installs Zsh, Oh My Zsh, configures theme, installs zsh-vcs.

Container Entry Point

  • Sets Zsh as the container's entry point.

Build and Run

  • Refer to cmd.sh for build and run instructions.

Additional Information

  • Ensure appropriate Python and JDK versions before building.

Pre-built Container

The container is available on Docker Hub.

Usage

  • Pull the image
docker pull israiloff/lvim:latest
  • Create a container
docker run -it --name lvim israiloff/lvim:latest
  • Start the container
docker start lvim
  • Connect to the container
docker exec -it lvim /bin/zsh