@@ -163,6 +163,9 @@ ENV CUDA_NVCC_EXECUTABLE=${CUDA_NVCC_EXECUTABLE}
163163ENV CUDA_ARCHITECTURES=${CUDA_ARCHITECTURES}
164164
165165RUN <<EOF
166+ echo "Log build time environment variable..."
167+ printenv
168+
166169 echo "(deb) Install basic utilities..."
167170
168171 # ....Setup Sources............................................................................
@@ -180,9 +183,6 @@ RUN <<EOF
180183 lsb-release \
181184 || exit 1
182185
183- echo "Log build time environment variable..."
184- printenv
185-
186186 # Update symlink to point to system python3 instead of system python2
187187 update-alternatives --install /usr/bin/python python /usr/bin/python3 1 || exit 1
188188 update-alternatives --install /usr/bin/pip pip /usr/bin/pip3 1 || exit 1
@@ -210,6 +210,9 @@ SHELL ["/bin/bash", "-c"]
210210ARG UBUNTU_VERSION_MAJOR
211211
212212RUN <<EOF
213+ echo "Log build time environment variable..."
214+ printenv
215+
213216 # ....Check pre-conditions.......................................................................
214217 {
215218 test -n "${UBUNTU_VERSION_MAJOR:?'Env variable need to be set and non-empty.'}" && \
@@ -235,8 +238,6 @@ RUN <<EOF
235238 python3-dev \
236239 python3-pip
237240
238- echo "Log build time environment variable..."
239- printenv
240241
241242 IMG_RELEASE="$( source /etc/lsb-release && echo ${DISTRIB_RELEASE})"
242243 if [[ "${UBUNTU_VERSION_MAJOR:?err}.04" != "${IMG_RELEASE}" ]]; then
@@ -281,6 +282,9 @@ ENV IS_TEAMCITY_RUN=${IS_TEAMCITY_RUN:-false}
281282COPY --from=base-image /requirements.l4t-base-image.txt /requirements.l4t-base-image.txt
282283
283284RUN <<EOF
285+ echo "Log build time environment variable..."
286+ printenv
287+
284288 # ....Check pre-conditions.....................................................................
285289 {
286290 test -n "${UBUNTU_VERSION_MAJOR:?'Env variable need to be set and non-empty.'}" && \
@@ -291,9 +295,8 @@ RUN <<EOF
291295 } || { echo -e "\033[1;31m[DN error]\033[0m Failed pre-condition check" 1>&2 ; exit 1 ; }
292296
293297 # ....Reinstall l4t image package in amd64 image...............................................
294- apt-get update
295-
296298 if [[ ${TARGETPLATFORM} =~ "linux/amd64".* ]]; then
299+ apt-get update
297300
298301 echo "Install general utilities..."
299302 apt-get install --assume-yes --no-install-recommends \
@@ -330,6 +333,10 @@ RUN <<EOF
330333 # ....Install l4t image ubuntu apt requirement.................................................
331334 if [[ ${TARGETPLATFORM} =~ "linux/amd64".* ]]; then
332335 echo "Install l4t image ubuntu apt requirement..."
336+
337+ echo "Log requirements.l4t-base-image.txt for debuging..."
338+ cat /requirements.l4t-base-image.txt
339+
333340 # Install pycuda related
334341 # Build instruction: https://github.com/berlinguyinca/pycuda/blob/master/doc/source/install.rst
335342 #
@@ -340,11 +347,12 @@ RUN <<EOF
340347 # ....Install l4t image python requirement from file...........................................
341348 echo "Install l4t image python requirement from file..."
342349 # Requirement for 'graphsurgeon' and 'uff', it give access to nvidia pip index
343- python3 -m pip install onnx_graphsurgeon uff --extra-index-url https://pypi.ngc.nvidia.com || pip3 install --no-cache-dir nvidia-pyindex || exit 1
350+ python3 -m pip install onnx_graphsurgeon uff --extra-index-url https://pypi.ngc.nvidia.com
351+ #|| pip3 install --no-cache-dir nvidia-pyindex
344352
345353 echo "Strip versions from requirement"
346354 sed -i.bak 's/==.*//g' /requirements.l4t-base-image.txt
347- pip3 install -r /requirements.l4t-base-image.txt || exit 1
355+ pip3 install -r /requirements.l4t-base-image.txt --extra-index-url https://pypi.ngc.nvidia.com
348356
349357 # Clean up sed tmp file
350358 rm /requirements.l4t-base-image.txt.bak
0 commit comments