Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
Bob Tanner
packer-windows
Commits
e6fd0f6d
Unverified
Commit
e6fd0f6d
authored
Sep 18, 2018
by
Stefan Scherer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add Dockerfile to run packer validate in Windows container
parent
995d12f8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
0 deletions
+16
-0
Dockerfile
Dockerfile
+16
-0
No files found.
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
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