Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix illegal whitespace in Dockerfile #2

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

codethief
Copy link

I followed the instructions from the recent blog post: I executed $ balena push mydevice.local and it finished (after a long time) with the following error message, indicating that the last part of ./CUDA/Dockerfile is the issue (everything else up until that point worked fine):

Some services failed to build:
    cuda: The command '/bin/sh -c apt-get update && apt-get install -y wget tar lbzip2 python3 libegl1 &&     wget https://developer.nvidia.com/embedded/L4T/r32_Release_v4.4/r32_Release_v4.4-GMC3/T210/Tegra210_Linux_R32.4.4_aarch64.tbz2 &&     tar xf Tegra210_Linux_R32.4.4_aarch64.tbz2 &&     cd Linux_for_Tegra &&     sed -i 's/config.tbz2\"/config.tbz2\" --exclude=etc\/hosts --exclude=etc\/hostname/g' apply_binaries.sh &&     sed -i 's/install --owner=root --group=root \"${QEMU_BIN}\" \"${L4T_ROOTFS_DIR}\/usr\/bin\/\"/#install --owner=root --group=root \"${QEMU_BIN}\" \"${L4T_ROOTFS_DIR}\/usr\/bin\/\"/g' nv_tegra/nv-apply-debs.sh &&     sed -i 's/LC_ALL=C chroot . mount -t proc none \/proc/ /g' nv_tegra/nv-apply-debs.sh &&     sed -i 's/umount ${L4T_ROOTFS_DIR}\/proc/ /g' nv_tegra/nv-apply-debs.sh &&     sed -i 's/chroot . \//  /g' nv_tegra/nv-apply-debs.sh &&     ./apply_binaries.sh -r / --target-overlay && cd ..     rm -rf Tegra210_Linux_R32.4.4_aarch64.tbz2 &&     rm -rf Linux_for_Tegra &&     echo "/usr/lib/aarch64-linux-gnu/tegra" > /etc/ld.so.conf.d/nvidia-tegra.conf && ldconfig' returned a non-zero code: 2

The logs didn't say anything more than that but as far as I can tell, the issue is not with any of the subcommands but with the whitespace at the end of line 26 of ./CUDA/Dockerfile. After removing the whitespace, balena push completes successfully.

@rsanchez87
Copy link

Hello Alan, I know this is not the right place to ask you a question, but I can't find a better one... can you simulate the hardware of a Jetson TX2 to test GStreamer commands in a docker or something like that to have it on the CI?

Thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants