Skip to content

amaroom/commandbox-amazon

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CommandBox on AmazonLinux

CommandBox provides a simple yet powerful way to work with ColdFusion. To Find out more about CommandBox, visit the CommandBox website.

Tags

How to use this image

The container folder /web/ROOT is the application root for the server.

The container service port is 8080.

Bind your local work folder to a running container

docker run \
    -v my/work/code/:/web/ROOT/ \
    -p 8080:8080 \
    -d amaroom/commandbox-amazon

Build an image with your code in it

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

Additional Library Files

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.

Modify Server Settings

Server.json

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.

Server files in servlet-home/ folder

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.

Example context paths

  • Server context
    • /web/servlet-home/WEB-INF/lucee-server/context
      • Contains configuration file lucee-server.xml
  • Web context
    • /web/servlet-home/WEB-INF/lucee-web
      • Contains configuration file lucee-web.xml.cfm

About

Run CFML via Commandbox on the AmazonLinux Docker image.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published