BookmarkSubscribeRSS Feed
☑ This topic is solved. Need further help from the community? Please sign in and ask a new question.
EyalGonen
Lapis Lazuli | Level 10

Hi experts,

 

I am struggling with this issue hopefully someone can advise. I am trying to "docker build" the SAS Viya IaC project from https://github.com/sassoftware/viya4-iac-aws but getting a timeout error after 30 seconds on the first FROM statement in the Dockerfile. This site uses a proxy to reach the Internet. According to all tests performed, the "docker build" command bypasses the configured proxy for the Ubuntu machine and for the proxy settings set at /etc/systemd/system/docker.service.d/http-proxy.conf and tries to access the Internet directly and this is not allowed/possible at this site  and hence the 30 second timeout and failure.

 

Tried adding "--build-arg HTTP_PROXY=" and "--build-arg HTTPS_PROXY=" to the "docker build" command and tried also to configure proxy at ~/.docker/config.json but nothing seems to make "docker build" go through the corporate's proxy.

 

Note that "docker run hello-world" does work in the sense that it connected to the Docker registry on the web via the proxy and downloaded the image successfully so the problem is scoped only to the "docker build".

 

Anyone?

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
gwootton
SAS Super FREQ
I think the applicable setting would be in ~/.docker/config.json based on the docker documentation here:
https://docs.docker.com/network/proxy/#build-with-a-proxy-configuration

If you run the build test example in the doc, does it show the environment variables set as expected?
--
Greg Wootton | Principal Systems Technical Support Engineer

View solution in original post

1 REPLY 1
gwootton
SAS Super FREQ
I think the applicable setting would be in ~/.docker/config.json based on the docker documentation here:
https://docs.docker.com/network/proxy/#build-with-a-proxy-configuration

If you run the build test example in the doc, does it show the environment variables set as expected?
--
Greg Wootton | Principal Systems Technical Support Engineer

suga badge.PNGThe SAS Users Group for Administrators (SUGA) is open to all SAS administrators and architects who install, update, manage or maintain a SAS deployment. 

Join SUGA 

Get Started with SAS Information Catalog in SAS Viya

SAS technical trainer Erin Winters shows you how to explore assets, create new data discovery agents, schedule data discovery agents, and much more.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 1 reply
  • 720 views
  • 0 likes
  • 2 in conversation