ThingWorx Flow > Installation and Configuration > Using ThingWorx Flow Docker > Building and Running ThingWorx Flow Docker Images
Building and Running ThingWorx Flow Docker Images
Building ThingWorx Flow Docker Images
1. Start the Docker Engine.
2. Browse to \ThingWorx-Flow-Dockerfiles-x-x-x\ThingWorx-Platform-Flow-Dockerfiles\dockerfiles and run the ./makeImages.sh command.
Running ThingWorx Flow Docker Images
For single environment
1. Add 127.0.0.1 flow.local.rnd.ptc.com to the /etc/hosts file.
You cannot modify this value: flow.local.rnd.ptc.com.
2. To start ThingWorx with a single ThingWorx Flow engine, browse to /ThingWorx-Flow-Dockerfiles-x-x-x/ThingWorx-Platform-Flow-Dockerfiles/docker-compose-files-single, and run the appropriate command for your environment:
Environment
Start
ThingWorx Platform H2 with ThingWorx Flow PostgreSQL
./startImages-twx-http-h2-and-flow-postgres.sh
ThingWorx Platform PostgreSQL with ThingWorx Flow PostgreSQL
./startImages-twx-http-postgres-and-flow-postgres.sh
ThingWorx Platform Microsoft SQL Server with ThingWorx Flow Microsoft SQL Server
./startImages-twx-http-mssql-and-flow-mssql.sh
ThingWorx Platform PostgreSQL with ThingWorx Flow Azure PostgreSQL
./startImages-twx-http-postgres-and-flow-azure.sh
3. Once your docker image is running, in your browser go to https://flow.local.rnd.ptc.com/Thingworx/Composer/.
4. Execute the LoadOAuthConfiguration service from ThingWorx Composer to load OAuths to the ThingWorx Flow server.
To stop ThingWorx with a single ThingWorx Flow engine, browse to /ThingWorx-Flow-Dockerfiles-x-x-x/ThingWorx-Platform-Flow-Dockerfiles/docker-compose-files-single, and run the appropriate command for your environment:
Environment
Stop
ThingWorx Platform H2 with ThingWorx Flow PostgreSQL
./stopImages-twx-http-h2-and-flow-postgres.sh
ThingWorx Platform PostgreSQL with ThingWorx Flow PostgreSQL
./stopImages-twx-http-postgres-and-flow-postgres.sh
ThingWorx Platform Microsoft SQL Server with ThingWorx Flow Microsoft SQL Server
./stopImages-twx-http-mssql-and-flow-mssql.sh
ThingWorx Platform PostgreSQL with ThingWorx Flow Azure PostgreSQL
./stopImages-twx-http-postgres-and-flow-azure.sh
For High Availability environment
1. Add 127.0.0.1 haproxy to the /etc/hosts file.
By default, haproxy is used. Before you change this value, you must modify the HAProxy host name parameter according to the instructions in Configuring ThingWorx Flow Docker.
2. To start ThingWorx High Availability with a single ThingWorx Flow engine, browse to /ThingWorx-Flow-Dockerfiles-x-x-x/ThingWorx-Platform-Flow-Dockerfiles/docker-compose-files-ha, and run the ./startImages-twx-ha-and-flow.sh command.
3. Once your docker image is up and running, in your browser go to https://haproxy:8443/Thingworx/Composer/.
4. Execute the LoadOAuthConfiguration service from ThingWorx Composer to load OAuths to the ThingWorx Flow server.
To stop ThingWorx High Availability with a single ThingWorx Flow engine, browse to /ThingWorx-Flow-Dockerfiles-x-x-x/ThingWorx-Platform-Flow-Dockerfiles/docker-compose-files-ha, and run the ./stopImages-twx-ha-and-flow.sh command.
View logs
To view all logs, run the following command:
docker-compose -f <docker compose yml file name> logs -f
To view logs of a specific container, run the following command:
docker-compose -f <docker compose yml file name> logs <container name>
Enter CTRL+C to close the logs.
Was this helpful?