Skip to content
Closed
4 changes: 2 additions & 2 deletions images/base/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Enterprise Base
# Example Base

[![Docker Pulls](https://img.shields.io/docker/pulls/codercom/enterprise-base?label=codercom%2Fenterprise-base)](https://hub.docker.com/r/codercom/enterprise-base)
[![Docker Pulls](https://img.shields.io/docker/pulls/codercom/example-base?label=codercom%2Fexample-base)](https://hub.docker.com/r/codercom/example-base)

## Description

Expand Down
4 changes: 2 additions & 2 deletions images/desktop/README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# Desktop

[![DockerPulls](https://img.shields.io/docker/pulls/codercom/enterprise-desktop)](https://hub.docker.com/r/codercom/enterprise-desktop)
[![DockerPulls](https://img.shields.io/docker/pulls/codercom/example-desktop)](https://hub.docker.com/r/codercom/example-desktop)

## Description

Wraps [enterprise-base](../base/README.md) with a xfce desktop environment.
Wraps [example-minimal](../minimal/README.md) with a xfce desktop environment.

> **Note:** This image does not contain a vnc-server.
> A VNC server can be added by using the [KasmVNC](https://registry.coder.com/modules/kasmvnc) module.
Expand Down
2 changes: 1 addition & 1 deletion images/desktop/ubuntu.Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM codercom/enterprise-minimal:latest
FROM codercom/example-minimal:latest

USER root

Expand Down
4 changes: 2 additions & 2 deletions images/golang/README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# Golang

[![DockerPulls](https://img.shields.io/docker/pulls/codercom/enterprise-golang)](https://hub.docker.com/r/codercom/enterprise-golang)
[![DockerPulls](https://img.shields.io/docker/pulls/codercom/example-golang)](https://hub.docker.com/r/codercom/example-golang)

## Description

Wraps [enterprise-base](../base/README.md) with the basics for Go development.
Wraps [example-base](../base/README.md) with the basics for Go development.

> **Note:** This image does not contain GoLand. For an example of how to install
> GoLand, see [enterprise-goland](../../deprecated/goland/README.md)
Expand Down
2 changes: 1 addition & 1 deletion images/golang/ubuntu.Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM codercom/enterprise-base:ubuntu
FROM codercom/example-base:ubuntu

# Run everything as root
USER root
Expand Down
4 changes: 2 additions & 2 deletions images/java/README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# Java

[![Docker Pulls](https://img.shields.io/docker/pulls/codercom/enterprise-java?label=codercom%2Fenterprise-java)](https://hub.docker.com/r/codercom/enterprise-java)
[![Docker Pulls](https://img.shields.io/docker/pulls/codercom/example-java?label=codercom%2Fexample-java)](https://hub.docker.com/r/codercom/example-java)

## Description

Wraps [enterprise-base](../base/README.md) with the basics for Java development.
Wraps [example-base](../base/README.md) with the basics for Java development.

> **Note:** This image does not contain IntelliJ. For an example of how to
> install IntelliJ, see [enterprise-intellij](../../deprecated/intellij/README.md)
Expand Down
4 changes: 2 additions & 2 deletions images/java/ubuntu.Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM codercom/enterprise-base:ubuntu
FROM codercom/example-base:ubuntu

# Run everything as root
USER root
Expand All @@ -18,7 +18,7 @@ ENV MAVEN_CONFIG="/home/coder/.m2"

RUN mkdir -p $MAVEN_HOME $MAVEN_HOME/ref \
&& echo "Downloading maven" \
&& curl -fsSL -o /tmp/apache-maven.tar.gz https://dlcdn.apache.org/maven/maven-3/${MAVEN_VERSION}/binaries/apache-maven-${MAVEN_VERSION}-bin.tar.gz \
&& curl -fsSL -o /tmp/apache-maven.tar.gz https://downloads.apache.org/maven/maven-3/${MAVEN_VERSION}/binaries/apache-maven-${MAVEN_VERSION}-bin.tar.gz \
&& echo "Checking downloaded file hash" \
&& echo "${MAVEN_SHA512} /tmp/apache-maven.tar.gz" | sha512sum -c - \
&& echo "Unzipping maven" \
Expand Down
4 changes: 3 additions & 1 deletion images/minimal/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
# Minimal Image
# Example Minimal

[![Docker Pulls](https://img.shields.io/docker/pulls/codercom/example-minimal?label=codercom%2Fexample-minimal)](https://hub.docker.com/r/codercom/example-minimal)

This image only contains the bare necessities:

Expand Down
4 changes: 2 additions & 2 deletions images/node/README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# Node

[![Docker Pulls](https://img.shields.io/docker/pulls/codercom/enterprise-node?label=codercom%2Fenterprise-node)](https://hub.docker.com/r/codercom/enterprise-node)
[![Docker Pulls](https://img.shields.io/docker/pulls/codercom/example-node?label=codercom%2Fexample-node)](https://hub.docker.com/r/codercom/example-node)

## Description

Wraps [enterprise-base](../base/README.md) with the basics for Node development.
Wraps [example-base](../base/README.md) with the basics for Node development.

## How To Use

Expand Down
2 changes: 1 addition & 1 deletion images/node/ubuntu.Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM codercom/enterprise-base:ubuntu
FROM codercom/example-base:ubuntu

# Run everything as root
USER root
Expand Down
7 changes: 7 additions & 0 deletions images/universal/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Example Universal Image

[![Docker Pulls](https://img.shields.io/docker/pulls/codercom/example-universal?label=codercom%2Fexample-universal)](https://hub.docker.com/r/codercom/example-universal)

## Description

Microsoft's [Universal Dev Container Image](https://github.com/devcontainers/images/tree/main/src/universal) extended with a `coder` user.
7 changes: 7 additions & 0 deletions images/universal/first-run-notice.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
Welcome to Coder! This environment is based on Microsoft's Dev Container Universal image
with a suite of common tools and languages (Python, Java, Node.js, Go, Rust, etc.)

➡️ https://github.com/devcontainers/images/tree/main/src/universal

To use another image, modify your devcontainer.json or your Coder Template.

55 changes: 55 additions & 0 deletions images/universal/ubuntu.Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
FROM mcr.microsoft.com/devcontainers/base:ubuntu

USER root

COPY first-run-notice.txt /usr/local/etc/vscode-dev-containers/

# Install universal development tools
# Common development tools, programming languages and runtimes, additional tools
RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \
&& apt-get -y install --no-install-recommends \
build-essential \
curl \
wget \
git \
vim \
nano \
unzip \
zip \
python3 \
python3-pip \
python3-venv \
nodejs \
npm \
openjdk-11-jdk \
jq \
htop \
tree \
&& apt-get autoremove -y && apt-get clean -y && rm -rf /var/lib/apt/lists/*

# Install Go
RUN wget -O go.tar.gz https://go.dev/dl/go1.21.5.linux-amd64.tar.gz \
&& tar -C /usr/local -xzf go.tar.gz \
&& rm go.tar.gz

# Install Maven
RUN wget -O maven.tar.gz https://downloads.apache.org/maven/maven-3/3.9.10/binaries/apache-maven-3.9.10-bin.tar.gz \
&& tar -C /opt -xzf maven.tar.gz \
&& mv /opt/apache-maven-3.9.10 /opt/maven \
&& rm maven.tar.gz

# Set up environment variables
ENV PATH="/usr/local/go/bin:/opt/maven/bin:${PATH}"
ENV JAVA_HOME="/usr/lib/jvm/java-11-openjdk-amd64"
ENV MAVEN_HOME="/opt/maven"

# Create coder user
RUN useradd coder \
--create-home \
--shell=/bin/bash \
--groups=docker \
--uid=1000 \
--user-group && \
echo "coder ALL=(ALL) NOPASSWD:ALL" >>/etc/sudoers.d/nopasswd

USER coder
1 change: 1 addition & 0 deletions scripts/images.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,5 @@ IMAGES=(
"java"
"node"
"desktop"
"universal"
)
Loading