Skip to content

Commit

Permalink
test code added to analyse the gethostbyname_ex problem under github …
Browse files Browse the repository at this point in the history
…runner
  • Loading branch information
Johannes Otepka committed Nov 2, 2023
1 parent 930faf2 commit bae5aa0
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion ci/ssh/win_Dockerfile_template
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,13 @@ SHELL ["powershell"]

ENV PYTHON_VERSION 3.8.10
ENV PYTHON_RELEASE 3.8.10
ENV docker_host_ip ${docker_host_ip}
#ENV docker_host_ip ${docker_host_ip}
ENV docker_host_name ${docker_host_name}

# RUN --mount=type=bind,source=D:/swdvlp64_cmake/external/ipyparallel,target=C:/src/ipyparallel

RUN ipconfig /all

#download and install latest node js version
RUN $baseurl = 'https://nodejs.org/dist/latest/'; \
$line = Invoke-WebRequest -UseBasicParsing -Uri $baseurl | Select-Object -ExpandProperty Content | ForEach-Object { $_.Split(\"`r`n\") } | Select-String -Pattern '-x64.msi'; \
Expand All @@ -34,6 +36,7 @@ RUN $baseurl = 'https://nodejs.org/dist/latest/'; \
Write-Host 'Complete.'; \
\
$hostsfile='C:\Windows\System32\drivers\etc\hosts'; \
$env:docker_host_ip=(Get-NetIPConfiguration -InterfaceAlias "Ethernet*").IPv4DefaultGateway.NextHop.Trim(); \
$line=\"$env:docker_host_ip $env:docker_host_name\"; \
if ($line.Trim().Length -eq 0) { \
Write-Host 'Environment variables docker_host_[name|ip] not set. Hosts file unchanged!'; \
Expand Down

0 comments on commit bae5aa0

Please sign in to comment.