-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[PackerBuildV1] Replace decompress-zip with extract-zip (#19576)
- Loading branch information
1 parent
5b83369
commit 63e9d5a
Showing
71 changed files
with
9,397 additions
and
27 deletions.
There are no files selected for viewing
72 changes: 72 additions & 0 deletions
72
Tasks/PackerBuildV1/_buildConfigs/Node20/package-lock.json
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
Default|1.231.0 | ||
Node20_229_6|1.231.2 | ||
Default|1.236.0 | ||
Node20_229_6|1.236.1 |
69 changes: 69 additions & 0 deletions
69
_generated/PackerBuildV1/DefaultTemplates/custom.linux.template.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
{ | ||
"variables": { | ||
"client_id": "{{env `client_id`}}", | ||
"client_secret": "{{env `client_secret`}}", | ||
"subscription_id": "{{env `subscription_id`}}", | ||
"tenant_id": "{{env `tenant_id`}}", | ||
"object_id": "{{env `object_id`}}", | ||
"resource_group": "{{env `resource_group`}}", | ||
"storage_account": "{{env `storage_account`}}", | ||
"image_url": "{{env `image_url`}}", | ||
"location": "{{env `location`}}", | ||
"script_relative_path": "{{env `script_relative_path`}}", | ||
"script_arguments": "{{env `script_arguments`}}", | ||
"package_path": "{{env `package_path`}}", | ||
"package_name": "{{env `package_name`}}", | ||
"capture_name_prefix": "{{env `capture_name_prefix`}}", | ||
"skip_clean": "{{env `skip_clean`}}" | ||
}, | ||
"builders": [{ | ||
"type": "azure-arm", | ||
"client_id": "{{user `client_id`}}", | ||
"client_secret": "{{user `client_secret`}}", | ||
"resource_group_name": "{{user `resource_group`}}", | ||
"storage_account": "{{user `storage_account`}}", | ||
"subscription_id": "{{user `subscription_id`}}", | ||
"tenant_id": "{{user `tenant_id`}}", | ||
"object_id": "{{user `object_id`}}", | ||
|
||
"os_type": "Linux", | ||
"image_url": "{{user `image_url`}}", | ||
"location": "{{user `location`}}", | ||
"vm_size": "Standard_D3_v2", | ||
|
||
"capture_container_name": "vsts-buildimagetask", | ||
"capture_name_prefix": "{{user `capture_name_prefix`}}" | ||
}], | ||
"provisioners": [{ | ||
"type": "shell", | ||
"execute_command": "chmod +x {{ .Path }}; {{ .Vars }} sudo -E sh '{{ .Path }}'", | ||
"inline": [ | ||
"rm -rf /deployTemp", | ||
"mkdir /deployTemp", | ||
"chmod 777 /deployTemp" | ||
] | ||
}, | ||
{ | ||
"type": "file", | ||
"source": "{{user `package_path`}}", | ||
"destination": "/deployTemp/{{user `package_name`}}" | ||
}, | ||
{ | ||
"type": "shell", | ||
"execute_command": "chmod +x {{ .Path }}; {{ .Vars }} sudo -E sh '{{ .Path }}'", | ||
"inline": [ | ||
"cd /deployTemp", | ||
"ls", | ||
"chmod +x /deployTemp/{{user `package_name`}}/{{user `script_relative_path`}}", | ||
"/deployTemp/{{user `package_name`}}/{{user `script_relative_path`}} {{user `script_arguments`}}" | ||
] | ||
}, | ||
{ | ||
"type": "shell", | ||
"execute_command": "chmod +x {{ .Path }}; {{ .Vars }} sudo -E sh '{{ .Path }}'", | ||
"inline": [ | ||
"/usr/sbin/waagent -force -deprovision+user && export HISTSIZE=0 && sync" | ||
], | ||
"skip_clean": "{{user `skip_clean`}}" | ||
}] | ||
} |
68 changes: 68 additions & 0 deletions
68
_generated/PackerBuildV1/DefaultTemplates/custom.managed.linux.template.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
{ | ||
"variables": { | ||
"client_id": "{{env `client_id`}}", | ||
"client_secret": "{{env `client_secret`}}", | ||
"subscription_id": "{{env `subscription_id`}}", | ||
"tenant_id": "{{env `tenant_id`}}", | ||
"object_id": "{{env `object_id`}}", | ||
"resource_group": "{{env `resource_group`}}", | ||
"storage_account": "{{env `storage_account`}}", | ||
"image_url": "{{env `image_url`}}", | ||
"location": "{{env `location`}}", | ||
"script_relative_path": "{{env `script_relative_path`}}", | ||
"script_arguments": "{{env `script_arguments`}}", | ||
"package_path": "{{env `package_path`}}", | ||
"package_name": "{{env `package_name`}}", | ||
"capture_name_prefix": "{{env `capture_name_prefix`}}", | ||
"skip_clean": "{{env `skip_clean`}}", | ||
"managed_image_name": "{{env `managed_image_name`}}" | ||
}, | ||
"builders": [{ | ||
"type": "azure-arm", | ||
"client_id": "{{user `client_id`}}", | ||
"client_secret": "{{user `client_secret`}}", | ||
"managed_image_resource_group_name": "{{user `resource_group`}}", | ||
"managed_image_name": "{{user `managed_image_name`}}", | ||
"subscription_id": "{{user `subscription_id`}}", | ||
"tenant_id": "{{user `tenant_id`}}", | ||
"object_id": "{{user `object_id`}}", | ||
|
||
"os_type": "Linux", | ||
"image_url": "{{user `image_url`}}", | ||
"location": "{{user `location`}}", | ||
"vm_size": "Standard_D3_v2" | ||
|
||
}], | ||
"provisioners": [{ | ||
"type": "shell", | ||
"execute_command": "chmod +x {{ .Path }}; {{ .Vars }} sudo -E sh '{{ .Path }}'", | ||
"inline": [ | ||
"rm -rf /deployTemp", | ||
"mkdir /deployTemp", | ||
"chmod 777 /deployTemp" | ||
] | ||
}, | ||
{ | ||
"type": "file", | ||
"source": "{{user `package_path`}}", | ||
"destination": "/deployTemp/{{user `package_name`}}" | ||
}, | ||
{ | ||
"type": "shell", | ||
"execute_command": "chmod +x {{ .Path }}; {{ .Vars }} sudo -E sh '{{ .Path }}'", | ||
"inline": [ | ||
"cd /deployTemp", | ||
"ls", | ||
"chmod +x /deployTemp/{{user `package_name`}}/{{user `script_relative_path`}}", | ||
"/deployTemp/{{user `package_name`}}/{{user `script_relative_path`}} {{user `script_arguments`}}" | ||
] | ||
}, | ||
{ | ||
"type": "shell", | ||
"execute_command": "chmod +x {{ .Path }}; {{ .Vars }} sudo -E sh '{{ .Path }}'", | ||
"inline": [ | ||
"/usr/sbin/waagent -force -deprovision+user && export HISTSIZE=0 && sync" | ||
], | ||
"skip_clean": "{{user `skip_clean`}}" | ||
}] | ||
} |
68 changes: 68 additions & 0 deletions
68
_generated/PackerBuildV1/DefaultTemplates/custom.managed.windows.template.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
{ | ||
"variables": { | ||
"client_id": "{{env `client_id`}}", | ||
"client_secret": "{{env `client_secret`}}", | ||
"subscription_id": "{{env `subscription_id`}}", | ||
"tenant_id": "{{env `tenant_id`}}", | ||
"object_id": "{{env `object_id`}}", | ||
"resource_group": "{{env `resource_group`}}", | ||
"storage_account": "{{env `storage_account`}}", | ||
"image_url": "{{env `image_url`}}", | ||
"location": "{{env `location`}}", | ||
"script_relative_path": "{{env `script_relative_path`}}", | ||
"script_arguments": "{{env `script_arguments`}}", | ||
"package_path": "{{env `package_path`}}", | ||
"package_name": "{{env `package_name`}}", | ||
"capture_name_prefix": "{{env `capture_name_prefix`}}", | ||
"managed_image_name": "{{env `managed_image_name`}}" | ||
}, | ||
"builders": [{ | ||
"type": "azure-arm", | ||
"client_id": "{{user `client_id`}}", | ||
"client_secret": "{{user `client_secret`}}", | ||
"managed_image_resource_group_name": "{{user `resource_group`}}", | ||
"managed_image_name": "{{user `managed_image_name`}}", | ||
"subscription_id": "{{user `subscription_id`}}", | ||
"tenant_id": "{{user `tenant_id`}}", | ||
"object_id": "{{user `object_id`}}", | ||
|
||
"os_type": "Windows", | ||
"image_url": "{{user `image_url`}}", | ||
"location": "{{user `location`}}", | ||
"vm_size": "Standard_D3_v2", | ||
|
||
"communicator": "winrm", | ||
"winrm_use_ssl": "true", | ||
"winrm_insecure": "true", | ||
"winrm_timeout": "15m", | ||
"winrm_username": "packer" | ||
|
||
}], | ||
"provisioners": [{ | ||
"type": "windows-shell", | ||
"inline": [ | ||
"cmd /c \"if exist c:\\\\DeployTemp rd /s /q c:\\\\DeployTemp\"", | ||
"cmd /c \"mkdir c:\\\\DeployTemp\"" | ||
] | ||
}, | ||
{ | ||
"type": "file", | ||
"source": "{{user `package_path`}}", | ||
"destination": "c:\\DeployTemp" | ||
}, | ||
{ | ||
"type": "powershell", | ||
"inline": [ | ||
"cd \"C:\\DeployTemp\"", | ||
"ls", | ||
"C:\\DeployTemp\\{{user `package_name`}}\\{{user `script_relative_path`}} {{user `script_arguments`}}" | ||
] | ||
}, | ||
{ | ||
"type": "powershell", | ||
"inline": [ | ||
"if( Test-Path $Env:SystemRoot\\windows\\system32\\Sysprep\\unattend.xml ){ rm $Env:SystemRoot\\windows\\system32\\Sysprep\\unattend.xml -Force}", | ||
"& $Env:SystemRoot\\System32\\Sysprep\\Sysprep.exe /oobe /generalize /quit /quiet" | ||
] | ||
}] | ||
} |
Oops, something went wrong.