Getting Started with ThingWorx Flow Docker
◦ ThingWorx-Flow-Dockerfiles-x-x-x
Location: > >
◦ ThingWorx-Platform-Flow-x-x-x
Location: > >
OR
Location: > >
2. Extract the contents of ThingWorx-Flow-Dockerfiles-x-x-x.zip.
3. Extract the contents of
ThingWorx-Platform-Flow-x-x-x.zip
to the
\ThingWorx-Flow-Dockerfiles-x-x-x\ThingWorx-Platform-Flow-Dockerfiles\dockerfiles\FlowSoftware directory.
4. Depending on the version of ThingWorx Flow, do the following:
If you are on ThingWorx Flow 9.0.3 or earlier:
1. Under the following folders, back up the keys.json file.
◦ \ThingWorx-Flow-Dockerfiles-x-x-x\ThingWorx-Platform-Flow-Dockerfiles\docker-compose-files-single\security-common
◦ \ThingWorx-Flow-Dockerfiles-x-x-x\ThingWorx-Platform-Flow-Dockerfiles\docker-compose-files-ha\security-common
2. Under the following folders:
◦ \ThingWorx-Flow-Dockerfiles-x-x-x\ThingWorx-Platform-Flow-Dockerfiles\docker-compose-files-single\security-common
◦ \ThingWorx-Flow-Dockerfiles-x-x-x\ThingWorx-Platform-Flow-Dockerfiles\docker-compose-files-ha\security-common
update the values of the following properties in the keys.json file:
◦ ENC_DEV966FASTE—String of 32 characters with letters and numbers
◦ exchange.admin_key—Letters and/or numbers
◦ exchange.suspend.admin_key—Letters and/or numbers
◦ oauth.admin_key—Letters and/or numbers
◦ trigger.admin_key—Letters and/or numbers
◦ ui.admin_key—Letters and/or numbers
◦ MODEL_DB.connection.password—Database password
◦ QUEUE.ADAPTERS.AMQP.CONFIG.credentials—RabbitMQ user name and password in the <username>:<password> format
For example:
{
"ENC_DEV966FASTE": "580c87ab346547b98d5f3cd3bdc63f1f",
"exchange.admin_key": "9296ffbcdba040f38e80bd2b580395ae",
"exchange.suspend.admin_key": "f97ea8a6c4534318a4b94fd23829d3e0",
"oauth.admin_key": "OAU_ADM",
"trigger.admin_key": "550d84e49e504f28be0b9767dd8a3521",
"ui.admin_key": "UADK",
"MODEL_DB.connection.password": "<DATABASE_PASSWORD>
",
"QUEUE.ADAPTERS.AMQP.CONFIG.credentials": "<username>:<password>"
}
3. Generate a 32-character hex value, for example, 3a7e91cef6734d2cb1e3b399889ade44, and do the following:
◦ In the following files, update the value of the secret property with the 32-character hex value:
▪ \ThingWorx-Flow-Dockerfiles-x-x-x\ThingWorx-Platform-Flow-Dockerfiles\docker-compose-files-single\security-common\config.json
▪ \ThingWorx-Flow-Dockerfiles-x-x-x\ThingWorx-Platform-Flow-Dockerfiles\docker-compose-files-ha\security-common\config.json
◦ In the following files, update the value of the CONFIG_IMAGE property with the 32-character hex value:
▪ \ThingWorx-Flow-Dockerfiles-x-x-x\ThingWorx-Platform-Flow-Dockerfiles\docker-compose-files-single\.env
▪ \ThingWorx-Flow-Dockerfiles-x-x-x\ThingWorx-Platform-Flow-Dockerfiles\docker-compose-files-ha\.env
If you are on ThingWorx Flow 9.0.4 or later:
In the following files:
• \ThingWorx-Flow-Dockerfiles-x-x-x\ThingWorx-Platform-Flow-Dockerfiles\docker-compose-files-single\.env
• \ThingWorx-Flow-Dockerfiles-x-x-x\ThingWorx-Platform-Flow-Dockerfiles\docker-compose-files-ha\.env
update the following values:
• CONFIG_IMAGE—Generated 32-character hex value
• ENC_DEV966FASTE—String of 32 characters with letters and numbers
• EXCHANGE_ADMIN_KEY—Letters and/or numbers
• EXCHANGE_SUSPEND_ADMIN_KEY—Letters and/or numbers
• OAUTH_ADMIN_KEY—Letters and/or numbers
• TRIGGER_ADMIN_KEY—Letters and/or numbers
• UI_ADMIN_KEY—Letters and/or numbers
• MODEL_DB_CONNECTION_PASSWORD—Database password
• QUEUE_ADAPTERS_AMQP_CONFIG_CREDENTIALS—RabbitMQ user name and password in the <username>:<password> format
For example:
CONFIG_IMAGE=3a7e91cef6734d2cb1e3b399889ade44
ENC_DEV966FASTE=580c87ab346547b98d5f3cd3bdc63f1f
EXCHANGE_ADMIN_KEY=9296ffbcdba040f38e80bd2b580395ae
EXCHANGE_SUSPEND_ADMIN_KEY=f97ea8a6c4534318a4b94fd23829d3e0
OAUTH_ADMIN_KEY=OAU_ADM
TRIGGER_ADMIN_KEY=550d84e49e504f28be0b9767dd8a3521
UI_ADMIN_KEY=UADK
MODEL_DB_CONNECTION_PASSWORD=<DATABASE_PASSWORD>
QUEUE_ADAPTERS_AMQP_CONFIG_CREDENTIALS=<username>:<password>