技术文章 - CS422414
在 ThingWorx 9.6 中构建 dockerfile 时出现错误“无法统计‘sqljdbc_12.6/enu/jars/mssql-jdbc-12.6.0.jre11.jar’:没有这样的文件或目录”
已修改: 11-Jul-2024
适用于
- ThingWorx Platform 9.6
说明
- 执行 build.sh 构建 mssql docker 部署生成以下错误
mv: cannot stat 'sqljdbc_12.6/enu/jars/mssql-jdbc-12.6.0.jre11.jar': No such file or directory
------
1 warning found (use --debug to expand):
- FromAsCasing: 'as' and 'FROM' keywords' casing do not match (line 4)
Dockerfile:15
--------------------
14 |
15 | >>> RUN unzip "/tmp/${PLATFORM_ARCHIVE}" \
16 | >>> && unzip -o -q -d Thingworx Thingworx.war \
17 | >>> && tar -xvf /tmp/${SQLDRIVER_ARCHIVE} \
18 | >>> && mv sqljdbc_12.6/enu/jars/mssql-jdbc-12.6.0.jre11.jar /tmp/sqljdbc42-${SQLDRIVER_VERSION}.jar
19 |
--------------------
ERROR: failed to solve: process "/bin/sh -c unzip \"/tmp/${PLATFORM_ARCHIVE}\" && unzip -o -q -d Thingworx Thingworx.war && tar -xvf /tmp/${SQLDRIVER_ARCHIVE} && mv sqljdbc_12.6/enu/jars/mssql-jdbc-12.6.0.jre11.jar /tmp/sqljdbc42-${SQLDRIVER_VERSION}.jar" did not complete successfully: exit code: 1
Build MSSQL Platform: Failed.
这是文章 422414 的 PDF 版本,可能已过期。最新版本 CS422414