description | icon |
---|---|
Containerize all things with BoxLang |
docker |
Two distinct image tags have been published for BoxLang, each serving a specific purpose.
ortussolutions/boxlang:cli
— This is just the BoxLang CLI in a container. You can pass expressions, run the runtime itself, use it for tooling, cron jobs, and more.ortussolutions/boxlang:miniserver
- This is the BoxLang MiniServer runtime packaged into a docker container.
docker pull ortussolutions/boxlang:cli
docker pull ortussolutions/boxlang:miniserver
Both images are tagged with the following tags:
latest
- The latest stable release of BoxLangsnapshot
- The latest snapshot release of BoxLangalpine-snapshot
- The latest snapshot release of BoxLang on Alpine Linux
{% hint style="danger" %}
We encourage you to use the snapshot
version of our images until we go stable.
{% endhint %}
docker exec -it CONTAINERID /usr/bin/bx.sh 2+2
docker run ortussolutions/boxlang:cli time /usr/bin/bx.sh 2+2
docker run -it \
-p 8080:8080 \
ortussolutions/boxlang:miniserver
# ARM / Apple Silicone
docker run --platform linux/amd64 \
-it \
-p 8080:8080 \
ortussolutions/boxlang:miniserver
Two example compose files are included below.
version: "2.1"
services:
cli:
image: ortussolutions/boxlang:cli
version: "2.1"
services:
bxweb:
image: ortussolutions/boxlang:miniserver
environment:
- BOXLANG_DEBUG=true
- BOXLANG_MODULES=bx-compat-cfml,bx-esapi,bx-mysql
volumes:
- .:/app
ports:
- 8880:8080
For more information on the options available when running the MiniServer container, see the image entry on Docker Hub.
The image has a module installer built in: /usr/local/bin/install-bx-module
which can be used via the BOXLANG_MODULES
env variable. If it detects it, then it will try to download an install those modules into the runtime's home. We recommend you do this by warming up the server first.
The runtime source code can be found here: https://github.com/ortus-boxlang/boxlang-docker
We welcome any pull requests, testing, docs, etc.