StackStorm / st2-docker

StackStorm docker-compose deployment
https://docs.stackstorm.com/install/docker.html
Apache License 2.0
188 stars 158 forks source link

Proxy setting #226

Closed VladoPortos closed 3 years ago

VladoPortos commented 3 years ago

Hello,

I need to go through proxy to reach internet, I have installed succesfully whole StackStorm in docker. But I can't reach packages for installation.

In documentation its mentioned to add it to: On Ubuntu systems, edit /etc/default/st2actionrunner and /etc/default/st2api to set the proxy configuration environment variables. For RHEL/CentOS systems, edit /etc/sysconfig/st2actionrunner and /etc/sysconfig/st2api.

But where are theses in docker version ? when I try to go inside containers the configs are not there..., any ideas ?

arm4b commented 3 years ago

Proxy settings in Docker might have very different instructions to set it up. There should be something in the Docker documentation about configuring the host environment with proxy. I'd recommend searching there.

VladoPortos commented 3 years ago

@armab figured it out. True its not stack storm issue but maybe it could be mentioned in documentation. To add two enviroment variables for each container in docker-compose ( for: st2actionrunner and st2api )

environment:
      HTTP_PROXY: http://<proxy_IP>:<proxy_port>
      HTTPS_PROXY: http://<proxy_IP>:<proxy_port>
arm4b commented 3 years ago

@VladoPortos That's a good idea. Sure, please open a PR for the documentation to include the proxy settings :+1: