tx2-rootfs-tx2 (sha256:25f81e7903cdd18267c2b53f2a3f39e79dffd324fe2a6b02a5d140bf3195b3cd)

Published 2024-09-11 17:02:07 -03:00 by spiri-buildbot

Installation

docker pull git.spirirobotics.com/spiri/tx2-rootfs-tx2@sha256:25f81e7903cdd18267c2b53f2a3f39e79dffd324fe2a6b02a5d140bf3195b3cd
sha256:25f81e7903cdd18267c2b53f2a3f39e79dffd324fe2a6b02a5d140bf3195b3cd

About this package

Generate a rootfs for the tx2 using docker

Image Layers

ADD file:d2c57bfbb29f6de3b29050a2c50c3806e0c8caa26f6d8dea47f479c923d72e3e in /
/bin/sh -c set -xe && echo '#!/bin/sh' > /usr/sbin/policy-rc.d && echo 'exit 101' >> /usr/sbin/policy-rc.d && chmod +x /usr/sbin/policy-rc.d && dpkg-divert --local --rename --add /sbin/initctl && cp -a /usr/sbin/policy-rc.d /sbin/initctl && sed -i 's/^exit.*/exit 0/' /sbin/initctl && echo 'force-unsafe-io' > /etc/dpkg/dpkg.cfg.d/docker-apt-speedup && echo 'DPkg::Post-Invoke { "rm -f /var/cache/apt/archives/*.deb /var/cache/apt/archives/partial/*.deb /var/cache/apt/*.bin || true"; };' > /etc/apt/apt.conf.d/docker-clean && echo 'APT::Update::Post-Invoke { "rm -f /var/cache/apt/archives/*.deb /var/cache/apt/archives/partial/*.deb /var/cache/apt/*.bin || true"; };' >> /etc/apt/apt.conf.d/docker-clean && echo 'Dir::Cache::pkgcache ""; Dir::Cache::srcpkgcache "";' >> /etc/apt/apt.conf.d/docker-clean && echo 'Acquire::Languages "none";' > /etc/apt/apt.conf.d/docker-no-languages && echo 'Acquire::GzipIndexes "true"; Acquire::CompressionTypes::Order:: "gz";' > /etc/apt/apt.conf.d/docker-gzip-indexes && echo 'Apt::AutoRemove::SuggestsImportant "false";' > /etc/apt/apt.conf.d/docker-autoremove-suggests
/bin/sh -c [ -z "$(apt-get indextargets)" ]
/bin/sh -c mkdir -p /run/systemd && echo 'docker' > /run/systemd/container
CMD ["/bin/bash"]
ARG DEBIAN_FRONTEND=noninteractive
|2 CUDA=10.2 DEBIAN_FRONTEND=noninteractive /bin/sh -c apt-get update && apt-get install -qq -y --no-install-recommends bc bzip2 can-utils freeglut3-dev gstreamer1.0-alsa gstreamer1.0-libav gstreamer1.0-plugins-bad gstreamer1.0-plugins-base gstreamer1.0-plugins-good gstreamer1.0-plugins-ugly gstreamer1.0-tools i2c-tools iw kbd language-pack-en-base libapt-inst2.0 libcanberra-gtk3-module libgles2 libglu1-mesa-dev libglvnd-dev libgtk-3-0 libpython2.7 libudev1 libvulkan1 libzmq5 mtd-utils parted pciutils python python-pexpect python3-distutils sox udev vulkan-utils wget wireless-tools wpasupplicant && rm -rf /var/lib/apt/lists/* && apt-get clean
|2 CUDA=10.2 DEBIAN_FRONTEND=noninteractive /bin/sh -c echo "/usr/lib/aarch64-linux-gnu/tegra" >> /etc/ld.so.conf.d/nvidia-tegra.conf && echo "/usr/lib/aarch64-linux-gnu/tegra-egl" >> /etc/ld.so.conf.d/nvidia-tegra.conf
|2 CUDA=10.2 DEBIAN_FRONTEND=noninteractive /bin/sh -c rm /usr/share/glvnd/egl_vendor.d/50_mesa.json
|2 CUDA=10.2 DEBIAN_FRONTEND=noninteractive /bin/sh -c mkdir -p /usr/share/glvnd/egl_vendor.d/ && echo '{ "file_format_version" : "1.0.0", "ICD" : { "library_path" : "libEGL_nvidia.so.0" }}' > /usr/share/glvnd/egl_vendor.d/10_nvidia.json
|2 CUDA=10.2 DEBIAN_FRONTEND=noninteractive /bin/sh -c mkdir -p /usr/share/egl/egl_external_platform.d/ && echo '{ "file_format_version" : "1.0.0", "ICD" : { "library_path" : "libnvidia-egl-wayland.so.1" }}' > /usr/share/egl/egl_external_platform.d/nvidia_wayland.json
|2 CUDA=10.2 DEBIAN_FRONTEND=noninteractive /bin/sh -c echo "/usr/local/cuda-$CUDA/targets/aarch64-linux/lib" >> /etc/ld.so.conf.d/nvidia.conf
ARG CUDA=invalid
COPY dir:0725d1b4474f0344f4b7b1390622390edf8803504d6361ea2d4bf4c4d9a84323 in /usr/local/cuda-$CUDA/bin
COPY dir:9b46734dc8a7091663195ffe9ffc9857883348879526dc41187c7dfedf759531 in /usr/local/cuda-$CUDA/nvvm
COPY dir:6fa64bdd1a5681089ce6c4d9fc9cd77c78b7e743d8d9b9f896033cea640069cb in /usr/local/cuda-$CUDA/nvvmx
COPY dir:c8efdad2a830c5d50aea2c30d0650064961081b40cec0786bb80e645a9928b5c in /usr/local/cuda-$CUDA/targets/aarch64-linux/include
COPY dir:1dd7dae72fbc00eefede3a7346e7326a885df0b6ec9f0b6b282f6a0e65c62d66 in /usr/local/cuda-$CUDA/targets/aarch64-linux/lib/stubs
COPY file:2e48456e7554a106ce4e6c8d8a21d207ec7fc6001b84c87f095226537559225d in /usr/local/cuda-$CUDA/targets/aarch64-linux/lib/
COPY file:22080695635f40ad38a39f321ba537abd01830c823a8b855d496ae638cfeb049 in /usr/local/cuda-$CUDA/targets/aarch64-linux/lib/
|2 CUDA=10.2 DEBIAN_FRONTEND=noninteractive /bin/sh -c ln -s /usr/local/cuda-$CUDA /usr/local/cuda && ln -s /usr/local/cuda-$CUDA/targets/aarch64-linux/include /usr/local/cuda/include && ln -s /usr/local/cuda-$CUDA/targets/aarch64-linux/lib /usr/local/cuda/lib64
ENV PATH /usr/local/cuda-$CUDA/bin:/usr/local/cuda/bin:${PATH}
ENV LD_LIBRARY_PATH /usr/local/cuda-$CUDA/targets/aarch64-linux/lib:${LD_LIBRARY_PATH}
|2 CUDA=10.2 DEBIAN_FRONTEND=noninteractive /bin/sh -c ldconfig
ENV NVIDIA_VISIBLE_DEVICES all
ENV NVIDIA_DRIVER_CAPABILITIES all
CMD ["/bin/bash"]
ARG DEBIAN_FRONTEND noninteractive
ENV TZ=Etc/UTC
RUN |2 DEBIAN_FRONTEND= noninteractive= /bin/sh -c ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone # buildkit
RUN |2 DEBIAN_FRONTEND= noninteractive= /bin/sh -c apt-get update # buildkit
RUN |2 DEBIAN_FRONTEND= noninteractive= /bin/sh -c apt-get install -y gpg tzdata locales ca-certificates curl # buildkit
RUN |2 DEBIAN_FRONTEND= noninteractive= /bin/sh -c dpkg-reconfigure tzdata # buildkit
RUN |2 DEBIAN_FRONTEND= noninteractive= /bin/sh -c dpkg-reconfigure locales # buildkit
COPY / / # buildkit
RUN |2 DEBIAN_FRONTEND= noninteractive= /bin/sh -c install -m 0755 -d /etc/apt/keyrings # buildkit
RUN |2 DEBIAN_FRONTEND= noninteractive= /bin/sh -c curl -fsSL https://download.docker.com/linux/debian/gpg -o /etc/apt/keyrings/docker.asc # buildkit
RUN |2 DEBIAN_FRONTEND= noninteractive= /bin/sh -c chmod a+r /etc/apt/keyrings/docker.asc # buildkit
RUN |2 DEBIAN_FRONTEND= noninteractive= /bin/sh -c echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/ubuntu $(. /etc/os-release && echo "$VERSION_CODENAME") stable" | tee /etc/apt/sources.list.d/docker.list > /dev/null # buildkit
RUN |2 DEBIAN_FRONTEND= noninteractive= /bin/sh -c apt-get update && apt-get upgrade -y # buildkit
RUN |2 DEBIAN_FRONTEND= noninteractive= /bin/sh -c apt-get -y install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin # buildkit
RUN |2 DEBIAN_FRONTEND= noninteractive= /bin/sh -c apt-get install -y network-manager netplan.io udhcpc ssh jq mosh iw iputils-ping iptables nmap curl dnsutils htop lsof tmux nano vim net-tools netcat less sudo kmod usbutils pciutils udev python3-pip tree rsync v4l-utils udisks2 exfat-fuse linux-firmware # buildkit
COPY ./src/firstrun/firstrun.service /etc/systemd/system/ # buildkit
RUN |2 DEBIAN_FRONTEND= noninteractive= /bin/sh -c ln -s /usr/lib/systemd/system/firstrun.service /etc/systemd/system/multi-user.target.wants/firstrun.service # buildkit
COPY ./src/firstrun/run_scripts.sh /opt/firstrun/ # buildkit
RUN |2 DEBIAN_FRONTEND= noninteractive= /bin/sh -c apt-get download resolvconf # buildkit
RUN |2 DEBIAN_FRONTEND= noninteractive= /bin/sh -c mkdir -p /opt/firstrun/packages/ # buildkit
RUN |2 DEBIAN_FRONTEND= noninteractive= /bin/sh -c mv resolvconf*.deb /opt/firstrun/packages/ # buildkit
COPY ./src/firstrun/scripts/ /opt/firstrun/scripts/ # buildkit
RUN |2 DEBIAN_FRONTEND= noninteractive= /bin/sh -c systemctl disable systemd-binfmt.service # buildkit
RUN |2 DEBIAN_FRONTEND= noninteractive= /bin/sh -c systemctl mask systemd-binfmt.service # buildkit
RUN |2 DEBIAN_FRONTEND= noninteractive= /bin/sh -c systemctl mask serial-getty@ttyS0.service # buildkit
RUN |2 DEBIAN_FRONTEND= noninteractive= /bin/sh -c systemctl mask netscript # buildkit
RUN |2 DEBIAN_FRONTEND= noninteractive= /bin/sh -c usermod -p '!' root # buildkit
RUN |2 DEBIAN_FRONTEND= noninteractive= /bin/sh -c useradd -rm -d /home/spiri -s /bin/bash -g root -G sudo,docker,tty,video -u 1000 spiri # buildkit
RUN |2 DEBIAN_FRONTEND= noninteractive= /bin/sh -c sh -c 'echo spiri:spiri-friend | chpasswd' # buildkit
COPY --chown=spiri ./docker-compose-main-config.yaml /home/spiri/docker-compose.yaml # buildkit
RUN |2 DEBIAN_FRONTEND= noninteractive= /bin/sh -c mkdir /opt/firstrun/oci-images/ /opt/docker-pre-cache-shared/ # buildkit
COPY ./src/preload-docker.py /opt/preload-docker.py # buildkit
RUN |2 DEBIAN_FRONTEND= noninteractive= /bin/sh -c python3 /opt/preload-docker.py /home/spiri/docker-compose.yaml # buildkit
RUN |2 DEBIAN_FRONTEND= noninteractive= /bin/sh -c mkdir -m 0755 /nix && chown spiri /nix # buildkit
USER spiri
RUN |2 DEBIAN_FRONTEND= noninteractive= /bin/sh -c sh -c "curl -L https://nixos.org/nix/install | sh -s -- --no-daemon" # buildkit
USER root
RUN |2 DEBIAN_FRONTEND= noninteractive= /bin/sh -c printf "[connection]\nwifi.powersave = 2" > /etc/NetworkManager/conf.d/default-wifi-powersave-on.conf # buildkit
RUN |2 DEBIAN_FRONTEND= noninteractive= /bin/sh -c sh -c "curl -s https://install.zerotier.com | bash | tee /dev/tty | (grep -q 'Package installed but cannot start service! You may be in a Docker' && exit 0 || exit 1)" # buildkit
ENV ELROY_RELEASE=r32.4
ENV SOC=t186
ADD --chown=root:root https://repo.download.nvidia.com/jetson/jetson-ota-public.asc /etc/apt/trusted.gpg.d/jetson-ota-public.asc # buildkit
RUN |2 DEBIAN_FRONTEND= noninteractive= /bin/sh -c chmod 644 /etc/apt/trusted.gpg.d/jetson-ota-public.asc && apt-get update && apt-get install -y --no-install-recommends ca-certificates && echo "deb https://repo.download.nvidia.com/jetson/common ${ELROY_RELEASE} main" > /etc/apt/sources.list.d/nvidia-l4t-apt-source.list && echo "deb https://repo.download.nvidia.com/jetson/${SOC} ${ELROY_RELEASE} main" >> /etc/apt/sources.list.d/nvidia-l4t-apt-source.list && apt-get update && rm -rf /var/lib/apt/lists/* # buildkit
RUN |2 DEBIAN_FRONTEND= noninteractive= /bin/sh -c echo "deb [arch=arm64] http://deb.connecttech.com/apt/tx2 ${ELROY_RELEASE} latest" > /etc/apt/sources.list.d/cti-l4t-apt-source.list && echo "deb [arch=arm64] http://deb.connecttech.com/apt/tx2 ${ELROY_RELEASE} 4-V002" >> /etc/apt/sources.list.d/cti-l4t-apt-source.list && echo "deb [arch=arm64] http://deb.connecttech.com/apt/tx2 ${ELROY_RELEASE} 4-V001" >> /etc/apt/sources.list.d/cti-l4t-apt-source.list && echo "deb [arch=arm64] http://deb.connecttech.com/apt/tx2 ${ELROY_RELEASE} 3-V002" >> /etc/apt/sources.list.d/cti-l4t-apt-source.list # buildkit
COPY ./src/cti-ota-public.asc /etc/apt/trusted.gpg.d/cti-ota-public.asc # buildkit
RUN |2 DEBIAN_FRONTEND= noninteractive= /bin/sh -c gpg --import /etc/apt/trusted.gpg.d/cti-ota-public.asc # buildkit
RUN |2 DEBIAN_FRONTEND= noninteractive= /bin/sh -c install -Dm644 /dev/null /opt/nvidia/l4t-packages/.nv-l4t-disable-boot-fw-update-in-preinstall # buildkit
RUN |2 DEBIAN_FRONTEND= noninteractive= /bin/sh -c apt-get update # buildkit
RUN |2 DEBIAN_FRONTEND= noninteractive= /bin/sh -c echo 'Y' | apt-get install --yes nvidia-l4t-gstreamer # buildkit
RUN |2 DEBIAN_FRONTEND= noninteractive= /bin/sh -c echo 'Y' | apt-get install -y --no-install-recommends nvidia-l4t-core nvidia-l4t-firmware nvidia-l4t-initrd nvidia-l4t-kernel nvidia-l4t-kernel-dtbs nvidia-l4t-oem-config nvidia-l4t-tools nvidia-l4t-cuda nvidia-container nvidia-l4t-xusb-firmware # buildkit
RUN |2 DEBIAN_FRONTEND= noninteractive= /bin/sh -c apt-get install --yes xserver-xorg-core xinit matchbox-window-manager x11-xserver-utils --no-install-recommends # buildkit
RUN |2 DEBIAN_FRONTEND= noninteractive= /bin/sh -c echo "exec matchbox-window-manager" > /home/spiri/.xsession # buildkit
COPY ./src/xserver/xserver.service /etc/systemd/system/ # buildkit
COPY ./src/xserver/start_x_custom.sh /opt/ # buildkit
RUN |2 DEBIAN_FRONTEND= noninteractive= /bin/sh -c ln -s /usr/lib/systemd/system/xserver.service /etc/systemd/system/multi-user.target.wants/xserver.service # buildkit
RUN |2 DEBIAN_FRONTEND= noninteractive= /bin/sh -c systemctl disable nv-l4t-usb-device-mode.service # buildkit
RUN |2 DEBIAN_FRONTEND= noninteractive= /bin/sh -c echo "/usr/lib/aarch64-linux-gnu/tegra/" >> /etc/ld.so.conf.d/nvidia-tegra.conf # buildkit
RUN |2 DEBIAN_FRONTEND= noninteractive= /bin/sh -c echo "/usr/lib/aarch64-linux-gnu/tegra-egl/" >> /etc/ld.so.conf.d/nvidia-tegra.conf # buildkit
RUN |2 DEBIAN_FRONTEND= noninteractive= /bin/sh -c ldconfig # buildkit
RUN |2 DEBIAN_FRONTEND= noninteractive= /bin/sh -c rm -f /opt/nvidia/l4t-packages/.nv-l4t-disable-boot-fw-update-in-preinstall # buildkit
COPY /build/boot/ /boot/ # buildkit
COPY ./src/docker-daemon.json /etc/docker/docker-daemon.json # buildkit
COPY ./src/set_hostname.sh /usr/local/bin/set_hostname.sh # buildkit
COPY ./src/set-hostname.service /etc/systemd/system/set-hostname.service # buildkit
RUN |2 DEBIAN_FRONTEND= noninteractive= /bin/sh -c ln -s /usr/lib/systemd/system/set-hostname.service /etc/systemd/system/multi-user.target.wants/set-hostname.service # buildkit
COPY ./src/regenerate_ssh_host_key.service /etc/systemd/system/ssh-key-firstboot.service # buildkit
RUN |2 DEBIAN_FRONTEND= noninteractive= /bin/sh -c ln -s /usr/lib/systemd/system/ssh-key-firstboot.service /etc/systemd/system/multi-user.target.wants/ssh-key-firstboot.service # buildkit
COPY ./src/hotspot/netplan.yaml /etc/netplan/ # buildkit
COPY ./src/hotspot/start_hotspot.sh /opt/ # buildkit
COPY ./src/hotspot/access_point.service /etc/systemd/system/access_point.service # buildkit
RUN |2 DEBIAN_FRONTEND= noninteractive= /bin/sh -c ln -s /usr/lib/systemd/system/access_point.service /etc/systemd/system/multi-user.target.wants/access_point.service # buildkit
RUN |2 DEBIAN_FRONTEND= noninteractive= /bin/sh -c echo "options bcmdhd op_mode=4" >> /etc/modprobe.d/bcmdhd.conf # buildkit
COPY ./src/fan_service/fan.sh /opt/ # buildkit
COPY ./src/fan_service/fan.service /etc/systemd/system/fan.service # buildkit
RUN |2 DEBIAN_FRONTEND= noninteractive= /bin/sh -c ln -s /usr/lib/systemd/system/fan.service /etc/systemd/system/multi-user.target.wants/fan.service # buildkit
RUN |2 DEBIAN_FRONTEND= noninteractive= /bin/sh -c apt-get clean # buildkit
COPY /VERSION /VERSION # buildkit

Labels

Key Value
org.opencontainers.image.created 2024-09-11T19:26:28.084Z
org.opencontainers.image.description Generate a rootfs for the tx2 using docker
org.opencontainers.image.licenses
org.opencontainers.image.revision 10a0fec3d71ecff026e1dfff90e84940f3ea0f4d
org.opencontainers.image.source https://git.spirirobotics.com/Spiri/tx2-rootfs
org.opencontainers.image.title tx2-rootfs
org.opencontainers.image.url https://git.spirirobotics.com/Spiri/tx2-rootfs
org.opencontainers.image.version xbnet-test
Details
Container
2024-09-11 17:02:07 -03:00
0
OCI / Docker
linux/arm64
5.0 GiB
Versions (11) View all
autoconnect 2024-10-02
main 2024-09-23
xbnet-test 2024-09-11
buzz-swarm 2024-08-19
2024-08-16 2024-08-16