Skip to content

Commit

Permalink
Rename files based on the image switch
Browse files Browse the repository at this point in the history
Signed-off-by: Peter Zhu <zhujiaxi@amazon.com>
  • Loading branch information
peterzhuamazon committed Feb 26, 2024
1 parent 3ea9b58 commit f2b504e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
# this file be licensed under the Apache-2.0 license or a
# compatible open source license.

# This script is specifically used on Windows Server Core based docker images
# This script is specifically used on Windows based docker images

# Set TLS to 1.2 so SSL/TLS can be enabled for downloading artifacts
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@ FROM ${ServerCoreRepo}:ltsc2019

USER ContainerAdministrator

COPY config/windows-servercore-setup.ps1 ./
COPY config/windows-setup.ps1 ./

RUN powershell Set-ExecutionPolicy -Scope CurrentUser -ExecutionPolicy Bypass -Force

RUN powershell ./windows-servercore-setup.ps1
RUN powershell ./windows-setup.ps1

RUN powershell -Command Remove-Item './windows-servercore-setup.ps1' -Force
RUN powershell -Command Remove-Item './windows-setup.ps1' -Force

RUN bash.exe -c "curl https://ci.opensearch.org > /dev/null 2>&1 || echo add certificates"

Expand Down

0 comments on commit f2b504e

Please sign in to comment.