Hi Everyone. I was hoping someone has come across this issue and fixed it successfully. I am trying to build the octopus worker tools but keep hitting road blocks due to the proxy. I have made the following changes:
Nuget.config I’ve added:
<config>
<add key="http_proxy" value="http://xxxxx.xxxx.xxx:8080" />
</config>
Dockerfile:
ARG http_proxy="http://xxxxx.xxxx.xxx:8080"
ARG https_proxy="http://xxxxx.xxxx.xxx:8080"
ARG HTTPS_PROXY="http://xxxxx.xxxx.xxx:8080"
ARG chocolateyProxyLocation=$http_proxy
ARG chocolateyProxyUser="xxxxxx\xxxxxxxx"
ARG chocolateyProxyPassword="xxxxxxxx"
# Install Choco
COPY ./xtras/install.ps1 .
RUN ./install.ps1
# Install dotnet 3.1+
COPY ./xtras//dotnet-install.ps1 .
RUN ./dotnet-install.ps1
The dotnet-install.ps1:
param(
[string]$ProxyAddress="http://xxxxx.xxxx.xxx:8080",
[switch]$ProxyUseDefaultCredentials=$True,
)