Skip to content

Commit

Permalink
feat: add enterprise-desktop image (#285)
Browse files Browse the repository at this point in the history
Introduce a new desktop image wrapping the base image with XFCE,
intended to serve as a base for templates using the KasmVNC module.
  • Loading branch information
matifali authored Oct 16, 2024
1 parent a7287d2 commit 55f49df
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 0 deletions.
15 changes: 15 additions & 0 deletions images/desktop/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Desktop

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

## Description

Wraps [enterprise-base](../base/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.
## How To Use

This image is intended to be used as a base image for a templates using the
[KasmVNC](https://registry.coder.com/modules/kasmvnc) module.
16 changes: 16 additions & 0 deletions images/desktop/ubuntu.Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
FROM codercom/enterprise-base:latest

USER root

RUN DEBIAN_FRONTEND=noninteractive apt-get update && \
apt-get install -y --no-install-recommends --no-install-suggests dbus-x11 openssl ssl-cert libdatetime-perl xfce4 xfce4-goodies && \
rm /run/reboot-required* || true

# Setting the required environment variables
ARG USER=coder
RUN echo 'LANG=en_US.UTF-8' >> /etc/default/locale; \
echo 'export GNOME_SHELL_SESSION_MODE=ubuntu' > /home/$USER/.xsessionrc; \
echo 'export XDG_CURRENT_DESKTOP=xfce' >> /home/$USER/.xsessionrc; \
echo 'export XDG_SESSION_TYPE=x11' >> /home/$USER/.xsessionrc;

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

0 comments on commit 55f49df

Please sign in to comment.