Environment Variables for Docker

This section lists the environment variables that can be used for TIBCO BusinessWorks™ Container Edition application deployment on Docker and Docker based platforms.

Environment Variable Default Values Description
BW_LOGLEVEL ERROR Used to set a log level for the TIBCO BusinessWorks™ Container Edition application. The default value is ERROR. Supported values are:
  • INFO
  • DEBUG
  • WARN
  • ERROR
BW_ENGINE_THREADCOUNT 8 Used to set engine thread count for the TIBCO BusinessWorks™ Container Edition application.
BW_ENGINE_STEPCOUNT -1 Used to set engine step count for the TIBCO BusinessWorks™ Container Edition application.
BW_APPLICATION_JOB_FLOWLIMIT n/a Used to set flow limit for TIBCO BusinessWorks™ Container Edition application.
APP_CONFIG_PROFILE n/a Name of the application profile that is to be used from a configuration management system such as ZUUL, Spring Cloud Config etc.
BW_PROFILE n/a Used to set the name of the BusinessWorks profile from the application.
BW_JAVA_OPTS n/a Used to set Java properties that are used at run time. The properties are specified using name-value pairs and are separated by spaces.

For example,

BW_JAVA_OPTS="-Dname=value -Dname=value"
Note: BW_JAVA_OPTS environment variable can also be used to hardcore the heap parameters.
MASHERY_SERVICE_CONFIG n/a

Applications can pass TIBCO Mashery configuration information using the MASHERY_SERVICE_CONFIG environment variable.

The value of the environment variable is a JSON string with the required TIBCO Mashery configuration.

For more information, see Integrating with TIBCO Mashery.

CONSUL_SERVER_URL n/a Used to set Consul server configuration.

For example,

CONSUL_SERVER_URL=http://127.0.0.1:8085

This must be set if you intend to use Consul for application configuration or for service registration and discovery.

EUREKA_SERVER_URL Used to set Eureka server configuration.

For example,

EUREKA_SERVER_URL=http://127.1.0.1:8080/eureka

This must be set if you intend to use Eureka for service registration and discovery.

MEMORY_LIMIT 1024M To optimize memory usage at runtime, set this environment variable to the configured memory.

For example,

MEMORY_LIMIT=512M

when the Docker container is launched with 512M.

Note: Use the MEMORY_LIMIT environment variable when heap parameters need to be set dynamically.
BW_JMX_CONFIG n/a Used to set JMX configuration (RMI host and JMX port) for monitoring TIBCO BusinessWorks™ Container Edition application. The value should be provided in RMI_HOST:JMX_PORT format.

For example,

BW_JMX_CONFIG=192.168.99.100:8050

BW_JAVA_GC_OPTS -XX:+UseG1GC Used to set JAVA GC configuration. The value should be one of the standard Java GC VM Options.

For example:

BW_JAVA_GC_OPTS=-XX:+UseParallelGC

DISABLE_BWCE_EAR_VALIDATION False Used to deploy the ActiveMatrix BusinessWorks 6.x application EAR file on TIBCO BusinessWorks Container Edition without converting project to Container Edition and rebuilding EAR file from TIBCO Business Studio for BusinessWorks
Note: Ensure that the ActiveMatrix BusinessWorks 6.x EAR file is exported. ActiveMatrix BusinessWorks 6.x EAR file should only have TIBCO BusinessWorks Container Edition supported activities and features.
BREAK_CIRCUIT_ON_404_ERROR True Used to change the behavior of the Circuit Breaker functionality. By default, circuit breaks for 404 (Not Found) error code.

It does not break the circuit for 404 error code on specifying the value of the variable as false.

SPRING_CLOUD_CONFIG_SERVER_URL n/a Used to set URL for Spring Cloud Config Server.

For example:

SPRING_CLOUD_CONFIG_SERVER_URL =http://127.1.0.1:8888/
Note: This must be set, if you want to use Spring Cloud Config Server for application configuration management.
SPRING_CLOUD_CONFIG_ACCESS_TOKEN_URI n/a Used to set OAuth access token URL for Spring Cloud Config Server, if OAuth is enabled.
SPRING_CLOUD_CONFIG_CLIENT_ID n/a Used to set OAuth client ID for Spring Cloud Config Server, if OAuth is enabled.
SPRING_CLOUD_CONFIG_CLIENT_SECRET n/a Used to set OAuth client secret for Spring Cloud Config Server, if OAuth is enabled.
CUSTOM_LOG_BACK False Used for customizing logs.
AWS_ACCESS_KEY n/a It is the access key used to acess the AWS account from where the parameters are required to be fetched.
Note: This must be set, if you want to use AWS systems manager parameter store for application configuration and secrets management.
AWS_SECRET_KEY n/a It is the secret key used to acess the AWS account from where the parameters are required to be fetched.
Note: This must be set, if you want to use AWS systems manager parameter store for application configuration and secrets management.
AWS_REGION n/a It is the region of your AWS account.
Note: This must be set, if you want to use AWS systems manager parameter store for application configuration and secrets management.
BW_COMPONENT_JOB_FLOWLIMIT n/a Used to set flow limit at component level for TIBCO BusinessWorks™ Container Edition application.

For example,

BW_COMPONENT_JOB_FLOWLIMIT=<applicationn version>.componentName