caesar@ubuntu:~/jetson-containers$ DOCKER_BUILDKIT=0 docker build --no-cache --network=host --tag whisper:r36.4.tegra-aarch64-cu126-22.04-python --file packages/build/python/Dockerfile --build-arg BASE_IMAGE=whisper:r36.4.tegra-aarch64-cu126-22.04-cuda_12.6 --build-arg PYTHON_VERSION="3.10" packages/build/python
\DEPRECATED: The legacy builder is deprecated and will be removed in a future release.
BuildKit is currently disabled; enable it by removing the DOCKER_BUILDKIT=0
environment-variable.
Sending build context to Docker daemon 40.45kB
Step 1/6 : ARG BASE_IMAGE
Step 2/6 : FROM ${BASE_IMAGE}
---> 723761fe7cb9
Step 3/6 : ARG PYTHON_VERSION TMP=/tmp/python
---> Running in b8181613b7cc
---> Removed intermediate container b8181613b7cc
---> 3f0d276b19f6
Step 4/6 : ENV PYTHON_VERSION=${PYTHON_VERSION} PYTHONFAULTHANDLER=1 PYTHONUNBUFFERED=1 PYTHONIOENCODING=utf-8 PYTHONHASHSEED=random PIP_NO_CACHE_DIR=true PIP_CACHE_PURGE=true PIP_ROOT_USER_ACTION=ignore PIP_DISABLE_PIP_VERSION_CHECK=on PIP_DEFAULT_TIMEOUT=100 PIP_WHEEL_DIR=/opt/wheels PIP_VERBOSE=1 TWINE_NON_INTERACTIVE=1 DEBIAN_FRONTEND=noninteractive PATH=/opt/venv/bin:$PATH
---> Running in f2ea28cc90ee
---> Removed intermediate container f2ea28cc90ee
---> 6daf09025e8d
Step 5/6 : COPY install.sh $TMP/
---> 3df309f14497
Step 6/6 : RUN $TMP/install.sh
---> Running in d1dc40c48993
+ apt-get update
Get:1 http://ports.ubuntu.com/ubuntu-ports jammy InRelease [270 kB]
Get:2 http://ports.ubuntu.com/ubuntu-ports jammy-updates InRelease [128 kB]
Get:3 http://ports.ubuntu.com/ubuntu-ports jammy-backports InRelease [127 kB]
Get:4 http://ports.ubuntu.com/ubuntu-ports jammy-security InRelease [129 kB]
Get:5 http://ports.ubuntu.com/ubuntu-ports jammy/multiverse arm64 Packages [224 kB]
Get:6 http://ports.ubuntu.com/ubuntu-ports jammy/restricted arm64 Packages [24.2 kB]
Get:7 http://ports.ubuntu.com/ubuntu-ports jammy/universe arm64 Packages [17.2 MB]
Get:8 http://ports.ubuntu.com/ubuntu-ports jammy/main arm64 Packages [1,758 kB]
Get:9 http://ports.ubuntu.com/ubuntu-ports jammy-updates/universe arm64 Packages [1,572 kB]
Get:10 http://ports.ubuntu.com/ubuntu-ports jammy-updates/main arm64 Packages [3,226 kB]
Get:11 http://ports.ubuntu.com/ubuntu-ports jammy-updates/multiverse arm64 Packages [52.7 kB]
Get:12 http://ports.ubuntu.com/ubuntu-ports jammy-updates/restricted arm64 Packages [4,709 kB]
Get:13 http://ports.ubuntu.com/ubuntu-ports jammy-backports/main arm64 Packages [82.8 kB]
Get:14 http://ports.ubuntu.com/ubuntu-ports jammy-backports/universe arm64 Packages [33.3 kB]
Get:15 http://ports.ubuntu.com/ubuntu-ports jammy-security/multiverse arm64 Packages [27.2 kB]
Get:16 http://ports.ubuntu.com/ubuntu-ports jammy-security/main arm64 Packages [2,922 kB]
Get:17 http://ports.ubuntu.com/ubuntu-ports jammy-security/restricted arm64 Packages [4,524 kB]
Get:18 http://ports.ubuntu.com/ubuntu-ports jammy-security/universe arm64 Packages [1,275 kB]
Fetched 38.3 MB in 9s (4,502 kB/s)
Reading package lists...
+ apt-get install -y --no-install-recommends python3.10 python3.10-dev
Reading package lists...
Building dependency tree...
Reading state information...
python3.10 is already the newest version (3.10.12-1~22.04.10).
python3.10 set to manually installed.
The following additional packages will be installed:
libexpat1-dev libpython3.10-dev zlib1g-dev
The following NEW packages will be installed:
libexpat1-dev libpython3.10-dev python3.10-dev zlib1g-dev
0 upgraded, 4 newly installed, 0 to remove and 0 not upgraded.
Need to get 5,467 kB of archives.
After this operation, 21.0 MB of additional disk space will be used.
Get:1 http://ports.ubuntu.com/ubuntu-ports jammy-updates/main arm64 libexpat1-dev arm64 2.4.7-1ubuntu0.6 [130 kB]
Get:2 http://ports.ubuntu.com/ubuntu-ports jammy-updates/main arm64 zlib1g-dev arm64 1:1.2.11.dfsg-2ubuntu9.2 [163 kB]
Get:3 http://ports.ubuntu.com/ubuntu-ports jammy-updates/main arm64 libpython3.10-dev arm64 3.10.12-1~22.04.10 [4,666 kB]
Get:4 http://ports.ubuntu.com/ubuntu-ports jammy-updates/main arm64 python3.10-dev arm64 3.10.12-1~22.04.10 [508 kB]
debconf: delaying package configuration, since apt-utils is not installed
Fetched 5,467 kB in 2s (2,385 kB/s)
Selecting previously unselected package libexpat1-dev:arm64.
(Reading database ... 29336 files and directories currently installed.)
Preparing to unpack .../libexpat1-dev_2.4.7-1ubuntu0.6_arm64.deb ...
Unpacking libexpat1-dev:arm64 (2.4.7-1ubuntu0.6) ...
Selecting previously unselected package zlib1g-dev:arm64.
Preparing to unpack .../zlib1g-dev_1%3a1.2.11.dfsg-2ubuntu9.2_arm64.deb ...
Unpacking zlib1g-dev:arm64 (1:1.2.11.dfsg-2ubuntu9.2) ...
Selecting previously unselected package libpython3.10-dev:arm64.
Preparing to unpack .../libpython3.10-dev_3.10.12-1~22.04.10_arm64.deb ...
Unpacking libpython3.10-dev:arm64 (3.10.12-1~22.04.10) ...
Selecting previously unselected package python3.10-dev.
Preparing to unpack .../python3.10-dev_3.10.12-1~22.04.10_arm64.deb ...
Unpacking python3.10-dev (3.10.12-1~22.04.10) ...
Setting up libexpat1-dev:arm64 (2.4.7-1ubuntu0.6) ...
Setting up zlib1g-dev:arm64 (1:1.2.11.dfsg-2ubuntu9.2) ...
Setting up libpython3.10-dev:arm64 (3.10.12-1~22.04.10) ...
Setting up python3.10-dev (3.10.12-1~22.04.10) ...
+ which python3.10
/usr/bin/python3.10
+ return_code=0
+ set -e
+ '[' 0 '!=' 0 ']'
++ lsb_release -rs
+ distro=22.04
+ '[' 22.04 = 24.04 ']'
+ '[' 22.04 = 20.04 ']'
+ '[' 22.04 = 18.04 ']'
+ curl -sS https://bootstrap.pypa.io/get-pip.py
+ python3.10
Using pip 25.2 from /tmp/python/tmpwdauhc63/pip.zip/pip (python 3.10)
Looking in indexes: https://pypi.jetson-ai-lab.dev/jp6/cu126, https://pypi.jetson-ai-lab.dev/jp6/cu126
WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0xffffb686eef0>: Failed to establish a new connection: [Errno 113] No route to host')': /jp6/cu126/pip/
WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0xffffb686e920>: Failed to establish a new connection: [Errno 113] No route to host')': /jp6/cu126/pip/
WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0xffffb686f9d0>: Failed to establish a new connection: [Errno 113] No route to host')': /jp6/cu126/pip/
WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0xffffb686fd90>: Failed to establish a new connection: [Errno 113] No route to host')': /jp6/cu126/pip/
WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0xffffb686f520>: Failed to establish a new connection: [Errno 113] No route to host')': /jp6/cu126/pip/
ERROR: Could not find a version that satisfies the requirement pip (from versions: none)
ERROR: No matching distribution found for pip
The command '/bin/sh -c $TMP/install.sh' returned a non-zero code: 1
nano packages/cuda/cuda/config.py
pip_path = (
f"jp{JETPACK_VERSION.major}/{short_version}" if IS_TEGRA
else f"sbsa/{short_version}" if IS_SBSA
else f"{DOCKER_ARCH}/{short_version}"
)
apt_path = pip_path if Version(LSB_RELEASE).major < 24 else f"{pip_path}/{LSB_RELEASE}"
pip_cache = package.copy()
pip_cache['name'] = f'pip_cache:{short_version}'
pip_cache['group'] = 'build'
pip_cache['dockerfile'] = 'Dockerfile.pip'
pip_cache['depends'] = []
pip_cache['test'] = []
pip_cache['build_args'] = {
'TAR_INDEX_URL': os.environ.get('LOCAL_TAR_INDEX_URL', f"https://apt.{index_host}") + f"/{apt_path}",
'FALLBACK_TAR_INDEX_URL': f"https://apt.{index_host}/{apt_path}",
'MULTIARCH_URL': f"https://apt.{index_host}/multiarch",
'DOWNLOADS_URL': f"https://apt.{index_host}/assets",
'PIP_INDEX_REPO': os.environ.get('LOCAL_PIP_INDEX_URL', os.environ.get('LOCAL_PIP_INDEX_REPO', f"https://pypi.{index_host}">
'PIP_TRUSTED_HOSTS': f"{os.environ.get('PIP_UPLOAD_HOST', index_host)}",
'PIP_EXTRA_INDEX_URL': os.environ.get('PIP_EXTRA_INDEX_URL', f"https://pypi.{index_host}/{pip_path}"),
'PIP_UPLOAD_REPO': os.environ.get('PIP_UPLOAD_REPO', f"http://{os.environ.get('PIP_UPLOAD_HOST', 'localhost')}/{pip_path}"),
'PIP_UPLOAD_USER': os.environ.get('PIP_UPLOAD_USER', f"jp{JETPACK_VERSION.major}" if SYSTEM_ARM else 'amd64'),
'PIP_UPLOAD_PASS': os.environ.get('PIP_UPLOAD_PASS', 'none'),
'SCP_UPLOAD_URL': os.environ.get('SCP_UPLOAD_URL', f"{os.environ.get('SCP_UPLOAD_HOST', 'localhost:/dist')}/{apt_path}"),
nano packages/build/python/install.sh
# path 1: Python 3.8-3.10 for JP5/6
# path 2: Python 3.6 for JP4
# path 3: Python 3.12 for 24.04
distro=$(lsb_release -rs)
if [ $distro = "24.04" ]; then
apt-get install -y --no-install-recommends python3-venv
python3 -m venv --system-site-packages /opt/venv
source /opt/venv/bin/activate
curl -sS https://bootstrap.pypa.io/get-pip.py | python${PYTHON_VERSION}
elif [ $distro = "20.04" ]; then
curl -sS https://bootstrap.pypa.io/pip/3.8/get-pip.py | python3.8
elif [ $distro = "18.04" ]; then
curl -sS https://bootstrap.pypa.io/pip/3.6/get-pip.py | python3.6
else
curl -sS https://bootstrap.pypa.io/get-pip.py | python${PYTHON_VERSION}
fi
nano .env
# These override the default BSP versions and
# change the architecture and OS to build for:
#
# L4T_VERSION="36.4.0"
# CUDA_VERSION="12.9"
# LSB_RELEASE="24.04"
# WEBPAGE URL for the Jetson Containers repository
# INDEX_HOST='jetson-ai-lab.io' OR jetson-ai-lab.io
INDEX_HOST='jetson-ai-lab.io'
# PIP_UPLOAD_REPO
# PIP_UPLOAD_USER
# PIP_UPLOAD_PASS
# SCP_UPLOAD_URL
# SCP_UPLOAD_USER
# SCP_UPLOAD_PASS
## LOCAL HOST CONFIGURATION
# Local PYPI Repository Configuration
# LOCAL_PIP_INDEX_REPO=http://localhost:8080
# PIP_UPLOAD_HOST=localhost:8080
# PIP_UPLOAD_USER=pypi
# PIP_UPLOAD_PASS=pypi
# Local APT Repository Configuration
# NOTE: The host should have the SCP_UPLOAD_USER created with SCP_UPLOAD_PASS creadentials
# LOCAL_TAR_INDEX_URL=http://localhost:8000
# SCP_UPLOAD_HOST=localhost:/dist/apt
# SCP_UPLOAD_USER=jetson
# SCP_UPLOAD_PASS=jetson
After modifying these documents, the download path did not change.