windows 中用于调试和日志打包程序的命令
command for debugging and log packer build in windows
我想登录一个文件进行详细调试 packer build ubuntu-14.04-amd64.json
,不想在我的脚本中安装一些工具。
运行 构建的确切命令是什么,并在文件中记录构建打包程序?
我也 运行 PACKER_LOG=1 packer build -debug ubuntu-14.04-amd64.json
或尝试导出变量 shell 但不是 运行
(UNIX)
$ export PACKER_LOG_PATH="/var/log/packer.log"
$ export PACKER_LOG=10
$ packer build -debug ubuntu_64.json
(WINDOWS)
$ set PACKER_LOG=10
$ set PACKER_LOG_PATH=c:\temp\packer log
$ packer build -debug ubuntu_64.json
现在你有一个文件,其中包含在构建过程中出现在控制台中的所有消息。
我想登录一个文件进行详细调试 packer build ubuntu-14.04-amd64.json
,不想在我的脚本中安装一些工具。
运行 构建的确切命令是什么,并在文件中记录构建打包程序?
我也 运行 PACKER_LOG=1 packer build -debug ubuntu-14.04-amd64.json
或尝试导出变量 shell 但不是 运行
(UNIX)
$ export PACKER_LOG_PATH="/var/log/packer.log"
$ export PACKER_LOG=10
$ packer build -debug ubuntu_64.json
(WINDOWS)
$ set PACKER_LOG=10
$ set PACKER_LOG_PATH=c:\temp\packer log
$ packer build -debug ubuntu_64.json
现在你有一个文件,其中包含在构建过程中出现在控制台中的所有消息。