Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Bob Tanner
packer-windows
Commits
e6fd0f6d
Unverified
Commit
e6fd0f6d
authored
Sep 18, 2018
by
Stefan Scherer
Browse files
Add Dockerfile to run packer validate in Windows container
parent
995d12f8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Dockerfile
0 → 100644
View file @
e6fd0f6d
FROM
mcr.microsoft.com/windows-insider:10.0.17744.1001 AS makeiso
WORKDIR
C:/source
COPY
. .
RUN
powershell
-NoProfile
-ExecutionPolicy
unrestricted
-file
make_unattend_iso.ps1
FROM
mcr.microsoft.com/windowsservercore-insider:10.0.17744.1001
ENV
chocolateyUseWindowsCompression false
RUN
powershell
-NoProfile
-ExecutionPolicy
unrestricted
-Command
\
iex
((
new-object net.webclient
)
.DownloadString
(
'https://chocolatey.org/install.ps1'
))
;
\
choco feature disable
--name
showDownloadProgress
RUN
choco
install
-y
packer
RUN
powershell
-Command
Install-WindowsFeature Hyper-V-PowerShell
COPY
--from=makeiso C:/source C:/source
WORKDIR
C:/source
RUN
powershell
-File
test.ps1
Write
Preview
Supports
Markdown
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