From 1ec5639bc4d4ece9772f488f339503ba2d119b45 Mon Sep 17 00:00:00 2001 From: Sharath Kumar K Date: Wed, 12 Feb 2020 17:32:30 +0100 Subject: [PATCH] Added a variable "LAYER" in the localrc file and no_proxy in the Dockerfile Setup "LAYER" variable to compiler/distro/flock to ensure which layer is building. Uncomment or add no_proxy in the Dockerfile to avoid build_pkgs errors. Change-Id: Ia96a55c8924abd5103d2a2daf90dd810d057aac3 Signed-off-by: Sharath Kumar K --- doc/source/developer_resources/build_guide.rst | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/doc/source/developer_resources/build_guide.rst b/doc/source/developer_resources/build_guide.rst index 683d657f5..7224827f6 100644 --- a/doc/source/developer_resources/build_guide.rst +++ b/doc/source/developer_resources/build_guide.rst @@ -175,15 +175,17 @@ text-based configuration file named ``localrc``: localrc configuration file ^^^^^^^^^^^^^^^^^^^^^^^^^^ -Create your ``localrc`` configuration file. For example: +Create your ``localrc`` configuration file. Make sure PROJECT and LAYER should +be set to compiler/distro/flock. For example: :: # tbuilder localrc MYUNAME= - PROJECT=starlingx + PROJECT= HOST_PREFIX=$HOME/starlingx/workspace HOST_MIRROR_DIR=$HOME/starlingx/mirror + LAYER= *************************** Build the base Docker image @@ -200,6 +202,7 @@ to build the base Docker image. ENV http_proxy " http://your.actual_http_proxy.com:your_port " ENV https_proxy " https://your.actual_https_proxy.com:your_port " ENV ftp_proxy " http://your.actual_ftp_proxy.com:your_port " + ENV no_proxy "127.0.0.1" RUN echo " proxy=http://your-proxy.com:port " >> /etc/yum.conf #. The ``tb.sh`` script automates the base Docker image build: