Skip to content

Commit 55f49df

Browse files
authored
feat: add enterprise-desktop image (#285)
Introduce a new desktop image wrapping the base image with XFCE, intended to serve as a base for templates using the KasmVNC module.
1 parent a7287d2 commit 55f49df

File tree

3 files changed

+32
-0
lines changed

3 files changed

+32
-0
lines changed

images/desktop/README.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# Desktop
2+
3+
[![DockerPulls](https://img.shields.io/docker/pulls/codercom/enterprise-desktop)](https://hub.docker.com/r/codercom/enterprise-desktop)
4+
5+
## Description
6+
7+
Wraps [enterprise-base](../base/README.md) with a xfce desktop environment.
8+
9+
> **Note:** This image does not contain a vnc-server.
10+
> A VNC server can be added by using the [KasmVNC](https://registry.coder.com/modules/kasmvnc) module.
11+
12+
## How To Use
13+
14+
This image is intended to be used as a base image for a templates using the
15+
[KasmVNC](https://registry.coder.com/modules/kasmvnc) module.

images/desktop/ubuntu.Dockerfile

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
FROM codercom/enterprise-base:latest
2+
3+
USER root
4+
5+
RUN DEBIAN_FRONTEND=noninteractive apt-get update && \
6+
apt-get install -y --no-install-recommends --no-install-suggests dbus-x11 openssl ssl-cert libdatetime-perl xfce4 xfce4-goodies && \
7+
rm /run/reboot-required* || true
8+
9+
# Setting the required environment variables
10+
ARG USER=coder
11+
RUN echo 'LANG=en_US.UTF-8' >> /etc/default/locale; \
12+
echo 'export GNOME_SHELL_SESSION_MODE=ubuntu' > /home/$USER/.xsessionrc; \
13+
echo 'export XDG_CURRENT_DESKTOP=xfce' >> /home/$USER/.xsessionrc; \
14+
echo 'export XDG_SESSION_TYPE=x11' >> /home/$USER/.xsessionrc;
15+
16+
USER coder

scripts/images.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,5 @@ IMAGES=(
88
"golang"
99
"java"
1010
"node"
11+
"desktop"
1112
)

0 commit comments

Comments
 (0)