@@ -16,11 +16,10 @@ RUN powershell -Command \
16
16
Write-Host 'Checksum verification succeeded!' -ForegroundColor Green; \
17
17
}"
18
18
19
- # Set up cygwin with git and ansible as a bootstrap, and add to system default path
20
- RUN setup-x86_64.exe --packages git,ansible --download --local-install --delete-orphans --site https://mirrors.kernel.org/sourceware/cygwin --local-package-dir c:\cygwin_packages --root C:\cygwin64 --wait --quiet-mode & \
21
- C:\cygwin64\bin\git config --system core.autocrlf false & \
22
- del setup-x86_64.exe & \
23
- setx PATH "c:\cygwin64\bin;%PATH%" & \
19
+ # Set up cygwin with ansible as a bootstrap, and add to system default path
20
+ RUN setup-x86_64.exe --packages ansible --download --local-install --delete-orphans --site https://mirrors.kernel.org/sourceware/cygwin --local-package-dir c:\cygwin_packages --root C:\cygwin64 --wait --quiet-mode && \
21
+ del setup-x86_64.exe && \
22
+ setx PATH "c:\cygwin64\bin;%PATH%" && \
24
23
mkdir c:\temp
25
24
26
25
# Download Ansible Config Script & Verify Its Checksum
@@ -46,13 +45,11 @@ RUN PowerShell .\ConfigureRemotingForAnsible.ps1 -CertValidityDays 9999 & \
46
45
ENV TERM=dumb
47
46
48
47
RUN net user ansible %PW% /ADD & net localgroup "Administrators" ansible /ADD & net localgroup "Remote Management Users" ansible /ADD && \
49
- C:\cygwin64\bin\git clone https://github.com/sxa/infrastructure -b wind-noant c:/infrastructure && \
50
48
sed -i -e 's/hosts: .*/hosts: localhost/' infrastructure/ansible/playbooks/AdoptOpenJDK_Windows_Playbook/main.yml && \
51
49
echo localhost ansible_connection=winrm > infrastructure/ansible/hosts && \
52
- cd infrastructure\ansible && \
50
+ cd C:\ infrastructure\ansible && \
53
51
C:\cygwin64\bin\python3.7m.exe /usr/bin/ansible-playbook -e git_sha=00000000 -e ansible_user=ansible -e ansible_password=%PW% -i hosts \
54
52
--skip-tags=adoptopenjdk,reboot,Windows_Updates,NTP_TIME,MSVS_2013,MSVS_2017,MSVS_2019 playbooks/AdoptOpenJDK_Windows_Playbook/main.yml && \
55
- rmdir /s /q c:\infrastructure && \
56
53
net user ansible /DELETE
57
54
58
55
ENTRYPOINT ["C:\\Program Files (x86)\\Microsoft Visual Studio\\2022\\BuildTools\\Common7\\Tools\\VsDevCmd.bat", "&&", "powershell.exe", "-NoLogo", "-ExecutionPolicy", "Bypass"]
0 commit comments