CommandBox provides a simple yet powerful way to work with ColdFusion. To Find out more about CommandBox, visit the CommandBox website.
lucee
,latest
(commandbox-amazon/blob/master/Dockerfile)railo
(commandbox-amazon/blob/railo/Dockerfile)
The container folder /web/ROOT
is the application root for the server.
The container service port is 8080
.
docker run \
-v my/work/code/:/web/ROOT/ \
-p 8080:8080 \
-d amaroom/commandbox-amazon
Modify or create a Dockerfile
FROM: amaroom/commandbox-amazon
COPY /my/work/folder/:/web/ROOT/
You can then build and run the Docker image:
$ docker build -t my-cfapp .
$ docker run -p 8080:8080 -d my-cfapp
You can also use the Docker image directly from Docker Hub
docker pull amaroom/commandbox-amazon
Any files place in the lib/
folder of the project before a build, or bound to
the container path /web/lib/
, are available to the Java framework to scan for
classes. This is a good place to place any of your Java JAR dependencies.
You can modify the server.json
file in this project to change many coldfusion
and java settings. Visit the CommandBox website](https://commandbox.ortusbooks.com)
for more information on how to use server.json
.
Traditionally, the Lucee (and Railo) servers had a Server and Web context.
This was split up into seperate context folders. These folders contained
configuration information and settings for each application Web context, and
a single global Server context. The Server context and any Web contexts
are located in the container path /web/servlet-home/WEB-INF
.
Configuration settings for Web and Server contexts, such as the
file lucee-web.xml.cfm
for Web contexts and lucee-server.xml
for the Server
context, are in their respective folders and can be replaced, or overridden with binding.
- Server context
/web/servlet-home/WEB-INF/lucee-server/context
- Contains configuration file
lucee-server.xml
- Contains configuration file
- Web context
/web/servlet-home/WEB-INF/lucee-web
- Contains configuration file
lucee-web.xml.cfm
- Contains configuration file