You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
I have created a javascript pulumi automation API script. The script uses local storage for state. The script runs fine on a VM behind a corporate proxy. but when I try to dockerize the script and run the docker container on the server with the same proxy server I get errors suggesting that pulumi is not able to connect to the internet.
Here are the errors I am getting
"https:" scheme not supported in proxy URI
pulumi:pulumi:Stack pulumidevelopment-dev creating (60s) warning: error downloading provider: Get "https://get.pulumi.com/releases/plugins/pulumi-resource-vsphere-v4.10.0-linux-amd64.tar.gz": proxyconnect tcp: dial tcp 10.113.3.3:3129: i/o timeout
Here is my Dockerfile
FROM node:18
RUN npm config set proxy http://10.114.3.3:3128
RUN npm config set strict-ssl false
ENV http_proxy http://10.114.3.3:3128
ENV https_proxy http://10.114.3.3:3128
ENV no_proxy 10.114.3.3,10.114.12.5,localhost,127.0.0.1
ENV PULUMI_ACCESS_TOKEN redacted
ENV PULUMI_CONFIG_PASSPHRASE redacted
ENV VSPHERE_USER "redacted"
ENV VSPHERE_PASSWORD "redacted"
#Add certificate
COPY ca.crt /usr/local/share/ca-certificates/ca.crt
RUN chmod 644 /usr/local/share/ca-certificates/ca.crt && update-ca-certificates
# Prepare the working directory
WORKDIR /app
COPY package.json /app/
RUN npm install
COPY . /app/
RUN pulumi login --local
# Command to run your application
CMD ["node", "index.js"]
A string thing is that the error message above refers to not being able to connect to 10.113.3.3:3129 but as you can see in my Dockerfile the IP Address of my proxy is 10.114.3.3:3128
I can't understand why this works on the same VM but fails in the docker container.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi,
I have created a javascript pulumi automation API script. The script uses local storage for state. The script runs fine on a VM behind a corporate proxy. but when I try to dockerize the script and run the docker container on the server with the same proxy server I get errors suggesting that pulumi is not able to connect to the internet.
Here are the errors I am getting
Here is my Dockerfile
A string thing is that the error message above refers to not being able to connect to 10.113.3.3:3129 but as you can see in my Dockerfile the IP Address of my proxy is 10.114.3.3:3128
I can't understand why this works on the same VM but fails in the docker container.
Beta Was this translation helpful? Give feedback.
All reactions