Closed Sispheor closed 3 years ago
I just added the proxy to the build arguments. And it's ok. Maybe it could be wrapped by the make command.
DOCKER_BUILDKIT=1 docker build -t quay.io/awx/awx_devel:HEAD \
--build-arg BUILDKIT_INLINE_CACHE=1 \
--build-arg http_proxy=http://web-proxy.domain:8080 \
--build-arg https_proxy=http://web-proxy.domain:8080 \
--cache-from=quay.io/awx/awx_devel:HEAD .
You may need to run
export http_proxy=...
export https_proxy=...
before running the docker build command.
Please confirm the following
Summary
Hello. I've set my Docker proxy into
/etc/systemd/system/docker.service.d/http-proxy.conf
and it helped on task that perform http get. But dnf does not rely on the environment and so fail to install packages into the image on build.AWX version
19.2.2
Installation method
docker on linux
Modifications
no
Ansible version
2.9.23
Operating system
CentOS Linux release 8.4.2105
Web browser
No response
Steps to reproduce
Step 1 - Being behind a proxy
Step 2:
Expected results
images are built
Actual results
Fail on image bulding
Additional information
At first I had another error related to the proxy
I fixed this one by adding the proxy to the Docker config.