Cancel
Showing results for 
Search instead for 
Did you mean: 

GitLab (code.siemens) CI/CD not able to download package.cloudfoundry on Docker image

Creator
Creator

Hey

 

I am setting up a CI/CD for a project that I am working on. I have been studying your DevOps todo app(https://gitlab.com/mindsphere/devops-demo) on how to deploy it to MindSphere Cloud Foundry, but the problem is that the docker is not able to download the package.cloudfoundry tar file. It tries to connect to the server but endnding in a timeout (se image).

Capture.PNG

2 REPLIES 2

Re: GitLab (code.siemens) CI/CD not able to download package.cloudfoundry on Docker image

Creator
Creator

I resolved this issue by setting the environment variable http_proxy and no_proxy for the container, with value:

 

/.gitlab-ci.yml
-------------------------------------
variables:
 https_proxy: 
 no_proxy: 

Re: GitLab (code.siemens) CI/CD not able to download package.cloudfoundry on Docker image

Experimenter
Experimenter

There are a number of env variables in GitLab (code.siemens) CI/CD container. One of them is CODE_PROXY which is the proxy used in CI/CD container. So simply add the following in .gitlab-ci.yml and it works!

 

before_script:
- export http_proxy=${CODE_PROXY}
- export HTTP_PROXY=${CODE_PROXY}
- export https_proxy=${CODE_PROXY}
- export HTTPS_PROXY=${CODE_PROXY}
- export ftp_proxy=${CODE_PROXY}
- export FTP_PROXY=${CODE_PROXY}