Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

https_proxy env vars should be preserved in SUDO_WWW / use apt-cacher-ng server for apt-update #129

Open
marcas1 opened this issue Aug 20, 2021 · 1 comment

Comments

@marcas1
Copy link

marcas1 commented Aug 20, 2021

I got

Cloning into '/var/www/MISP'...
fatal: unable to access 'https://github.com/MISP/MISP.git/': Could not resolve host: github.com

I fixed that with , at least for Debian, in INSTALL_NODB.sh line 87 :

87:    SUDO_WWW="sudo **--preserve-env=HTTPS_PROXY,HTTP_PROXY** -H -u ${WWW_USER} "

(and I remove the exit 1 after sha1sum test to bypass)

in docker-compose, I added in section "environment:"

      - HTTP_PROXY=${HTTP_PROXY}
      - HTTPS_PROXY=${HTTPS_PROXY}

and I defined my proxy values in .env (template.env)

at the top of web/Dockerfile I inserted line 7 for adding my apt-cacher-ng server for .deb (different from http(s)_proxy ENV.)

RUN [ -f /etc/apt/apt.conf ] || echo 'Acquire::http::Proxy "http://apt-cache.mydomain:3142/";' |tee -a /etc/apt/apt.conf

(I first defined a ~/.docker/config.json with proxy env vars too but It was sometimes ignored)

regards

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants
@marcas1 and others