Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
P
packer-windows
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Bob Tanner
packer-windows
Commits
7bda7787
Commit
7bda7787
authored
Oct 07, 2016
by
paulopez78
Committed by
Stefan Scherer
Oct 12, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
disable windows defender, makes slow building images
parent
b2a7684f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
90 additions
and
0 deletions
+90
-0
scripts/docker/disable-windows-defender.ps1
scripts/docker/disable-windows-defender.ps1
+1
-0
windows_2016_docker_core.json
windows_2016_docker_core.json
+89
-0
No files found.
scripts/docker/disable-windows-defender.ps1
0 → 100644
View file @
7bda7787
Set-MpPreference
-DisableRealtimeMonitoring
$true
\ No newline at end of file
windows_2016_docker_core.json
0 → 100644
View file @
7bda7787
{
"builders"
:
[
{
"type"
:
"virtualbox-iso"
,
"communicator"
:
"winrm"
,
"iso_url"
:
"{{user `iso_url`}}"
,
"iso_checksum_type"
:
"{{user `iso_checksum_type`}}"
,
"iso_checksum"
:
"{{user `iso_checksum`}}"
,
"headless"
:
true
,
"boot_wait"
:
"2m"
,
"winrm_username"
:
"vagrant"
,
"winrm_password"
:
"vagrant"
,
"winrm_timeout"
:
"6h"
,
"shutdown_command"
:
"shutdown /s /t 10 /f /d p:4:1 /c
\"
Packer Shutdown
\"
"
,
"guest_os_type"
:
"Windows2012_64"
,
"guest_additions_mode"
:
"disable"
,
"disk_size"
:
61440
,
"floppy_files"
:
[
"{{user `autounattend`}}"
,
"./scripts/disable-winrm.ps1"
,
"./scripts/docker/enable-winrm.ps1"
,
"./scripts/microsoft-updates.bat"
,
"./scripts/win-updates.ps1"
,
"./scripts/oracle-cert.cer"
],
"vboxmanage"
:
[
[
"modifyvm"
,
"{{.Name}}"
,
"--memory"
,
"2048"
],
[
"modifyvm"
,
"{{.Name}}"
,
"--cpus"
,
"2"
]
]
}
],
"provisioners"
:
[
{
"type"
:
"windows-shell"
,
"scripts"
:
[
"./scripts/vm-guest-tools.bat"
,
"./scripts/enable-rdp.bat"
]
},
{
"type"
:
"windows-restart"
},
{
"type"
:
"powershell"
,
"scripts"
:
[
"./scripts/docker/add-docker-group.ps1"
,
"./scripts/docker/install-docker.ps1"
,
"./scripts/docker/open-docker-insecure-port.ps1"
,
"./scripts/docker/remove-docker-key-json.ps1"
,
"./scripts/docker/disable-windows-defender.ps1"
]
},
{
"type"
:
"windows-restart"
},
{
"type"
:
"windows-shell"
,
"scripts"
:
[
"./scripts/compile-dotnet-assemblies.bat"
,
"./scripts/uac-enable.bat"
,
"./scripts/compact.bat"
]
}
],
"post-processors"
:
[
{
"type"
:
"vagrant"
,
"keep_input_artifact"
:
false
,
"output"
:
"windows_2016_docker_core_{{.Provider}}.box"
,
"vagrantfile_template"
:
"vagrantfile-windows_2016.template"
}
],
"variables"
:
{
"iso_url"
:
"http://care.dlservice.microsoft.com/dl/download/1/6/F/16FA20E6-4662-482A-920B-1A45CF5AAE3C/14393.0.160715-1616.RS1_RELEASE_SERVER_EVAL_X64FRE_EN-US.ISO"
,
"iso_checksum_type"
:
"md5"
,
"iso_checksum"
:
"18a4f00a675b0338f3c7c93c4f131beb"
,
"autounattend"
:
"./answer_files/2016_core/Autounattend.xml"
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment