wazuh-packages icon indicating copy to clipboard operation
wazuh-packages copied to clipboard

Add Proxy options to set proxy in Dockerfile for each Environment / Architecture

Open MethylHaine opened this issue 4 years ago • 1 comments

My apologies if this is not the place to talk about this issue.

Description

The wazuh_packages scripts do not provide an option to set a proxy in the respective Dockerfiles of each environment. Thus the scripts won't work in most Entreprise environments.

Dirty Fix

An immediate workaround is to hardcode the proxy settings in each Dockerfile of the project, by using ${ENV}.

ENV = http_proxy MY_CORPORATE_PROXY
ENV = https_proxy MY_CORPORATE_PROXY

Tests

Tested on CentOS 7 x86_64, with generate_rpm_package.sh. for the following architectures :

  • [x] x86_64
  • [x] i386
  • [x] ppc64le
  • [x] aarch64
  • [x] armv7hl

Solution

The best would be to add an option allowing to dynamically specifiy the proxy when calling the scripts. The proxy could be set during the docker run step.

MethylHaine avatar Jan 22 '21 10:01 MethylHaine

Hello @MethylHaine,

Sorry for the late reply. It seems that you have done great research and effort, would you like to open us a Pull Request? We will be glad to review and merge as soon as we can. If you can't we will include it in further development as soon as possible. Thanks for your time and feedback.

Regards.

okynos avatar Mar 30 '21 14:03 okynos