Building AutoSD images behind a network proxy
Building AutoSD images behind a network proxy¶
When you build an Automotive Stream Distribution (AutoSD) image within a secured corporate network,
you must configure your environment to route traffic through a local proxy server. This configuration
allows the automotive-image-builder tool to access the external CentOS Automotive SIG repositories.
By passing your proxy credentials and network settings to the build environment, you ensure that the image assembly process can successfully download the packages and dependencies required for a bootable image.
Prerequisites
- You have access to the
automotive-image-buildertool. - You have the URL and port of your corporate proxy server (for example,
http://proxy.example.com:8080). - You have the proxy authentication credentials.
Procedure
- Export the
<http_proxy>and<https_proxy>variables:
console
$ export http_proxy="<http://user:password@proxy.example.com:8080>"
$ export https_proxy="<http://user:password@proxy.example.com:8080>"
$ export no_proxy="<localhost,127.0.0.1,.example.com>"
-
Build an image with
automotive-image-builder:console $ sudo -E aib-dev build \ --target qemu \ sig-docs/demos/developer/developer.aib.yml \ my-image.qcow2 -
Verify the proxy access to the AutoSD repositories:
console
$ curl -I https://autosd.sig.centos.org/AutoSD-10/nightly/repos/