This Docker image provides a build environment for Sencha ExtJS Apps. It is based on the ruby:2.7.4-bullseye Docker image and adds the following components:
- temurin-8-jre
- Apache Ant 1.10.12
- SenchaCmd Community Edition 7.0.0.40
- Sencha ExtJS GNU GPLv3 versions 5.1.1, 6.2.0, and 7.0.0 in the directory
opt/Sencha
The following stable dockerimage tags are available
- v2.0.0 only support interactive execution of build
- v2.1.0 now supports headless execution, e.g.,
docker run --rm -it -v $(pwd):/app --name sencha sencha-cmd:local command
This image is being built automatically through GitHub Actions and published on DockerHub and the GitHub Container Registry daily and on pushed tags with a semantic version number (cf. https://semver.org). If a pull request is issued against the main branch of this repository, it will be built but not published.
docker run --rm -it -v /ABSOLUTE/PATH/TO/SENCHA/APP:/app --name SOME-NAME ghcr.io/bwbohl/sencha-cmd:latest
The above command will pull the pre-built image from the GitHub Container Registry and run it on your system.
You can clone or download this repository and then build and run the Docker image on your local machine. Please make sure you have installed Docker on your system.
Please refer to the options GitHub is offering you above with the green button labelled “Code”.
For building the container, please run the following command, replacing TAG-NAME
with a docker tag of your liking:
docker build -t TAG-NAME .
e.g.
docker build -t sencha-cmd:local .
To run the container built according to the above instructions, run the following command, replacing TAG-NAME
with the tag name you used when executing the docker build
command:
docker run --rm -it -v /ABSOLUTE/PATH/TO/SENCHA/APP:/app --name SOME-NAME TAG-NAME
Please replace /ABSOLUTE/PATH/TO/SENCHA/APP with the filesystem path to your sencha-app code to mount it under /app
in the container.
Either of the above ways of running the docker image will result in a bash prompt ‘inside’ the container image opened on your command line. Depending on your sencha-app’s build environment, you now should execute the respective build commands. The standard sencha build command syntax is:
sencha app build [production|testing|native|package]
For more details also refer to the Sencha Cmd Reference, Using Cmd with Ext JS 6, or the Sencha Cmd Docs in general.
This work is licensed under the terms of the GNU GPLv3.