安装和配置 > 使用 ThingWorx Docker > 设置 ThingWorx Docker > 构建 ThingWorx Docker 映像
构建 ThingWorx Docker 映像
完成设置后,可以使用构建脚本来创建 ThingWorx Docker 映像。包括的 build.sh 脚本采用 build.env 文件中设置的变量,并与 staging 文件夹中的文件一起使用,以确保 Docker 构建命令具有相应的变量,且提供了可用的构建上下文。
要构建映像,请运行以下命令:
./build.sh type
type 可以是以下值之一:
h2
postgres
mssql
azuresql
构建过程完成后,即可使用以下 Docker 映像,具体取决于所构建的内容提供工具:
H2
Platform Docker 映像:thingworx/platform-h2:latest
PostgreSQL
Platform Docker 映像:thingworx/platform-postgres:latest
PostgreSQL DB Docker 映像:thingworx/postgres-db:latest
Microsoft SQL Server
Platform Docker 映像:thingworx/platform-mssql:latest
Microsoft SQL Server DB Docker 映像:thingworx/mssql-db:latest
Azure SQL
Platform Docker 映像:thingworx/platform-azuresql:latest
* 
PostgreSQL 和 Microsoft SQL Server 的 DB Docker 映像仅用于测试和开发目的。它们不是为生产用途设计的。