Sign inSign up

ziyibear/codercom-java-images-eclipse-temurin

By ziyibear

Updated 3 months ago

This repository contains java images for use with Coder. but can choose jdk version!!!

Image
0

10K+

ziyibear/codercom-java-images-eclipse-temurin repository overview

codercom-java-images-eclipse-temurin

This repository contains java images for use with Coder. but can choose jdk version!!!

All of our base images are built for Ubuntu or Debian environments. For example, you can use images like eclipse-temurin:21-jdk-noble or eclipse-temurin:17-jdk-noble.

Image Source Code

Base Image

The base image is using from https://hub.docker.com/_/eclipse-temurin/

Image List

The Image are push through Docker hub and Github Registry, can choose any to pull if want latest, can pull from below

  • docker pull ghcr.io/ziyi-bear/codercom-java-images-eclipse-temurin:main-25-jdk-noble
  • docker pull ghcr.io/ziyi-bear/codercom-java-images-eclipse-temurin:main-21-jdk-noble
  • docker pull ghcr.io/ziyi-bear/codercom-java-images-eclipse-temurin:main-17-jdk-noble

Building Locally

This repository uses a multi-stage Dockerfile. You can target either the base (production-ready) image or the dev (development-ready) image.

Build the Base Image
docker build --target base -t codercom-java-base:latest .
Build the Dev Image
docker build --target dev -t codercom-java-dev:latest .

why don't use DHI image?

because it will always show error below when running user coder

coder@2bb4c0973b7a:/$ sudo apt update
sudo: unable to initialize PAM: Critical error - immediate abort

User Management

We do not explicitly delete the default user (e.g., ubuntu) or user 1001 in these containers. This is because some base images do not contain user 1001 or a default user out of the box, which would cause user deletion commands to fail during the build process (e.g., id: '1001': no such user). Instead, we handle user permissions and creation dynamically to ensure compatibility across various JDK base images.

Agent Harness Usage

When using these images with Coder, the Coder agent harness will automatically provision the workspace and execute startup scripts. Since we retain the default users, the agent can easily be configured to run as the existing non-root user (or a dedicated coder user if you choose to provision one in your template).

Ensure your Coder templates are configured to start the agent with the appropriate user privileges so that your IDEs, terminal, and file system permissions behave correctly within the workspace.

Tag summary

Content type

Image

Digest

sha256:73667e0b1

Size

277 Bytes

Last updated

3 months ago

docker pull ziyibear/codercom-java-images-eclipse-temurin:sha256-39064ddffe414b6a70a11e442043e00859b3822b71fac3a4c594428b583e8995.sig