构建 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 Init Docker 镜像:thingworx/postgresql-init-twx:latest
Microsoft SQL Server
Platform Docker 镜像:thingworx/platform-mssql:latest
Microsoft SQL Server DB Init Docker 镜像:thingworx/mssql-init-twx:latest
Azure SQL
Platform Docker 镜像:thingworx/platform-azuresql:latest
Azure SQL DB Init Docker 镜像:thingworx/azuresql-init-twx:latest
* 
在运行 Platform Docker 镜像前,请确保为 PostgreSQL、Microsoft SQL 和 Azure SQL 运行 Init Docker 镜像。
这对您有帮助吗?