Joe Black | me@joeblack.nyc | github
Minimal image with jinja templates rendered by tmpld. This image uses a custom, minimal version of Debian Linux.
Build environment variables are often used in the build script to bump version numbers and set other options during the docker build phase. Their values can be overridden using a build argument of the same name.
MONSTER_APPSNODE_VERSIONTMPLD_VERSION
[todo] Finish describing these.
The following variables are standard in most of our dockerfiles to reduce duplication and make scripts reusable among different projects:
APP: monster-uiUSER: monster-uiHOME/opt/monster-ui
Run environment variables are used in the entrypoint script to render configuration templates, perform flow control, etc. These values can be overridden when inheriting from the base dockerfile, specified during docker run, or in kubernetes manifests in the env array.
All environment variables in this image are used in the following templates in the build/templates directory of this repo.
MONSTERUI_ROOT_DOMAINMONSTERUI_COMPANY_NAMEMONSTERUI_CROSSBAR_URIMONSTERUI_PROVISIONER_URIMONSTERUI_WEBSOCKET_URIMONSTERUI_WEBPHONE_URIMONSTERUI_KAZOO_CLUSTER_IDMONSTERUI_RESELLER_IDMONSTERUI_DISABLE_BRAINTREEMONSTERUI_LOGOUT_TIMERMONSTERUI_ADDITIONAL_LOGGED_IN_APPSMONSTERUI_ADDITIONAL_CSS_FILESMONSTERUI_LANGUAGEMONSTERUI_APPLICATION_TITLEMONSTERUI_CALL_REPORT_EMAILMONSTERUI_COMPANY_NAMEMONSTERUI_SUPPORT_URLMONSTERUI_LOGOUT_URLMONSTERUI_LOA_URIMONSTERUI_RESPORG_URIMONSTERUI_PREVENT_DID_FORMATTINGMONSTERUI_JIRA_FEEDBACK_URLMONSTERUI_SHOW_ALL_CALLFLOWSMONSTERUI_SHOW_JS_ERRORS
NGINX_PROXY_PROTOCOLNGINX_LOAD_BALANCER_CIDRNGINX_CACHING
NGINX_LOG_LEVELNGINX_HTTP_CLIENT_MAX_BODY_SIZE
[todo] Finish describing these.
All of our docker-* repos in GitHub have CI pipelines that push to docker cloud/hub.
This image is available at:
-
https://store.docker.com/community/images/telephoneorg/monster-ui
-
docker pull telephoneorg/monster-ui
To run:
docker run -d \
--name monster-ui \
-p "80:80" \
-e "NGINX_PROXY_PROTOCOL=false" \
-e "NGINX_LOG_LEVEL=warn" \
-e "MONSTERUI_CROSSBAR_URI=http://localhost:8000/v2/" \
-e "MONSTERUI_WEBSOCKET_URI=ws://localhost:5555" \
-e "MONSTERUI_WEBPHONE_URI=ws://localhost:5064" \
-e "MONSTERUI_DISABLE_BRAINTREE=false" \
-e "MONSTERUI_SHOW_JS_ERRORS=true" \
telephoneorg/monster-uiNOTE: Please reference the Run Environment section for the list of available environment variables, edit to your individual needs.
Pull the images
docker-compose pullStart application and dependencies
# start in foreground
docker-compose up --abort-on-container-exit
# start in background
docker-compose up -dEdit the manifests under kubernetes/<environment> to reflect your specific environment and configuration.
Deploy monster-ui:
kubectl create -f kubernetes/<environment>NOTE: Ensure kazoo deployment is running. This container will be paused by the kubewait init-container until it's service dependencies exist and all pass readiness-checks.