Before we can begin with the actual exercises, please make sure that you:
- Cloned this repository
- Have a recent version of Docker installed
- Created a Guacamole MySQL Docker image
- Created a Desktop Docker image
- Created a Blender Docker image
If done so, you can continue with the intermediate or advanced exercises.
Throughout this workshop, we make use of a custom MySQL Docker Image that provides the proper schema such that Guacamole can store information.
More information on supported Guacamole Database backends can be found here.
Follow the steps below to create the Docker image:
- Open a terminal and navigate to
{clone_dir}/prerequisites/gw_guacdb/
.
This directory contains the following file(s):
Dockerfile for building the image
initdb.sql for injecting the SQL schema at image creation time - Execute
docker build . -t gw_guacdb
This builds the Guacamole database Docker image and stores it in the local Docker registry as gw_guacdb.
In the exercises you will see references to this image in docker-compose.yml files.
In the following exercises, we will run Blender in a Docker container based on a desktop Docker image. This desktop image combines XFCE with a virtual frame buffer (XVFB), so that the desktop containers can be run headless. Furthermore it has VNC for remote control by Guacamole.
Follow the steps below to create the Docker image:
- Open a terminal and navigate to
{clone_dir}/prerequisites/gw_desktop/
.
This directory contains the following file(s):
Dockerfile for building the image
startup.sh is the main entry point for the Docker container (starts the supervisor daemon)
supervisord.conf configures the process manager and services (e.g. XVFB, X11VNC & SSH) - Execute
docker build . -t gw_desktop
This builds the desktop Docker image and stores it in the local Docker registry as gw_desktop.
The goal of this workshop is to make Blender available in the browser. To this end, we create a Blender Docker image which is based on the previously generated Desktop image.
Follow the steps below to create the Docker image:
- Open a terminal and navigate to
{clone_dir}/prerequisites/gw_blender/
.
This directory contains the following file(s):
blender.desktop runs at startup and executes blender.sh
blender.sh starts Blender with the appropriate scene (from environment variable BLENDER_FILE)
Dockerfile for building the image - Execute
docker build . -t gw_blender
This builds the Blender Docker image and stores it in the local Docker registry as gw_blender.
In the exercises you will see references to this image in docker-compose.yml files.
You can now continue with the intermediate or advanced exercise.