Add /etc/resolv.conf and /etc/ssl/certs to pages chroot
When pages chroots and tries to connect to an external url, it needs the /etc/resolve.conf
to issue a dns lookup. If the URL uses SSL, it also needs access to /etc/ssl/certs
.
Temporary fix is creating:
-
/var/opt/gitlab/gitlab-rails/shared/pages/etc/resolv.conf
as a copy of/etc/resolv.conf
-
/var/opt/gitlab/gitlag-rails/shared/pages/etc/ssl/certs/cacerts.pem
as a sum of all the pem files under/etc/ssl/certs/
but we need a permanent solution.