This repository contains Dockerfiles to build CFML application servers.
Supported CFML engines:
Adobe ColdFusion is unlikely to be supported from this repository due to licensing requirements.
A compatible version of the Apache Tomcat Native Library is installed for better Tomcat performance in production environments.
Railo's Java Agent for the JVM is enabled for better memory management of compiled CFML code.
The default configuration serves a single application for any hostname on the listening port. Multiple applications can be supported by editing the server.xml in the Tomcat config.
These containers use baseimage-docker for their base image. This makes the images fairly large (600MB+) but provides a few benefits:
- It handles the zombie reaping problem which can occur for applications that use
cfexecute
- It responds better to
docker stop
by signalling Tomcat and giving it some time to shut down cleanly. - You can use
cron
to schedule application cleanup tasks instead of the server's built-in task scheduler.
These containers include two template generators:
- A custom version of the tpage command-line tool for the Perl Template Toolkit.
- The envtpl command-line tool for the Python Jinja2 template engine.
Both of these generators can read environment variables and feed them as variables into their respective templates. They are useful for generating Railo configuration files from template files either at build time (in a Dockerfile) or run time (in a startup script).
Prebuilt Docker images are available on Docker Hub. These images are are created via automated builds.
These images are not 'trusted' and are provided with no warranty. You may find these prebuilt images useful for trying out the containers, but for any serious work I recommend you fork the GitHub repository and use your fork to build your own images. Everything needed to build
You can find the prebuilt images in the following repositories:
The Docker files and config files are available under the MIT License. The CFML engines are available under their respective licenses.