Skip to content

Commit

Permalink
add another restart
Browse files Browse the repository at this point in the history
  • Loading branch information
colbylwilliams committed Oct 18, 2022
1 parent 42a45ff commit 4f94bb5
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Microsoft Azure CLI Custom Image Helper 'az' Extension adds useful "utilities" f
To install the Azure CLI Custom Image Helper extension, simply run the following command:

```sh
az extension add --source https://github.com/colbylwilliams/az-bake/releases/latest/download/bake-0.0.27-py3-none-any.whl -y
az extension add --source https://github.com/colbylwilliams/az-bake/releases/latest/download/bake-0.0.28-py3-none-any.whl -y
```

### Update
Expand Down
4 changes: 4 additions & 0 deletions bake/HISTORY.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
Release History
===============

0.0.28
++++++
+ Add another windows restart to packer build file

0.0.27
++++++
+ Fix bug ignoring winget defaults
Expand Down
6 changes: 6 additions & 0 deletions bake/azext_bake/templates/packer/build.pkr.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,12 @@ build {
// }
###BAKE###

provisioner "windows-restart" {
# needed to get elevated script execution working
restart_timeout = "30m"
pause_before = "2m"
}

# Disable Auto-Logon that was enabled above
provisioner "powershell" {
inline = [
Expand Down
2 changes: 1 addition & 1 deletion bake/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
logger.warn("Wheel is not available, disabling bdist_wheel hook")

# Must match a HISTORY.rst entry.
VERSION = '0.0.27'
VERSION = '0.0.28'

# The full list of classifiers is available at
# https://pypi.python.org/pypi?%3Aaction=list_classifiers
Expand Down
2 changes: 1 addition & 1 deletion builder/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ LABEL maintainer="Microsoft" \
RUN apk add --no-cache packer --repository=http://dl-cdn.alpinelinux.org/alpine/edge/community

# install az-bake
RUN az extension add --source https://github.com/colbylwilliams/az-bake/releases/latest/download/bake-0.0.27-py3-none-any.whl -y
RUN az extension add --source https://github.com/colbylwilliams/az-bake/releases/latest/download/bake-0.0.28-py3-none-any.whl -y

# Terminate container on stop
STOPSIGNAL SIGTERM
Expand Down

0 comments on commit 4f94bb5

Please sign in to comment.