Skip to content

Commit

Permalink
Turn on logging on packer
Browse files Browse the repository at this point in the history
  • Loading branch information
ElstonLewis committed Nov 22, 2023
1 parent a902888 commit 4f70cf4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@ echo "packer plugins: `/bin/packer plugins installed`"
echo "executing /bin/packer init -upgrade ./config.pkr.hcl"
/bin/packer init -upgrade ./config.pkr.hcl

echo "executing /bin/packer build ./$PACKER_SCRIPT | tee /usr/local/packer/logs/$UOMI_NAME.log"
export PACKER_LOG=1
echo "executing /bin/packer build -debug ./$PACKER_SCRIPT | tee /usr/local/packer/logs/$UOMI_NAME.log"
/bin/packer build -debug ./$PACKER_SCRIPT | tee /usr/local/packer/logs/$UOMI_NAME.log

# Workaround for bad Packer exit code
Expand Down

0 comments on commit 4f70cf4

Please sign in to comment.