-
Notifications
You must be signed in to change notification settings - Fork 76
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
nvidia overlay failing on bionic: x86_64-linux-gnu: no such file or directory #14
Comments
Hmm I can't reproduce this issue:
$ rocker --nvidia --user --pull --pulse osrf/ros:crystal-desktop rviz2
Plugins found: ['dev_helpers', 'home', 'nvidia', 'pulse', 'user']
Active extensions ['nvidia', 'pulse', 'user']
Pulling image osrf/ros:crystal-desktop
b'{"status":"Pulling from osrf/ros","id":"crystal-desktop"}\r\n'
b'{"status":"Digest: sha256:62579d806386b2b3ff2ecf3924f0ba39b8d8422fb7979db42e469cfbfd26e19f"}\r\n'
b'{"status":"Status: Image is up to date for osrf/ros:crystal-desktop"}\r\n'
Writing dockerfile to /tmp/tmpslr3q80k/Dockerfile
vvvvvv
# Preamble from extension [nvidia]
# Ubuntu 16.04 with nvidia-docker2 beta opengl support
FROM nvidia/opengl:1.0-glvnd-devel-ubuntu16.04 as glvnd
Preamble from extension [pulse]Preamble from extension [user]FROM osrf/ros:crystal-desktop Snippet from extension [nvidia]Open nvidia-docker2 GL supportCOPY --from=glvnd /usr/local/lib/x86_64-linux-gnu /usr/local/lib/x86_64-linux-gnu COPY --from=glvnd /usr/local/share/glvnd/egl_vendor.d/10_nvidia.json /usr/local/share/glvnd/egl_vendor.d/10_nvidia.json if the path is alreaady present don't fail because of being unable to appendRUN ( echo '/usr/local/lib/x86_64-linux-gnu' >> /etc/ld.so.conf.d/glvnd.conf && ldconfig || grep -q /usr/local/lib/x86_64-linux-gnu /etc/ld.so.conf.d/glvnd.conf ) && ENV LD_LIBRARY_PATH /usr/local/lib/x86_64-linux-gnu:/usr/local/lib/i386-linux-gnu${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}} ENV NVIDIA_VISIBLE_DEVICES ${NVIDIA_VISIBLE_DEVICES:-all} Snippet from extension [pulse]RUN mkdir -p /etc/pulse Connect to the hosts server using the mounted UNIX socket\n\default-server = unix:/run/user/1000/pulse/native\n Prevent a server running in the container\n\autospawn = no\n Prevent the use of shared memory\n\enable-shm = false\n
Snippet from extension [user]make sure sudo is installed to be able to give user sudo access in dockerRUN apt-get update RUN useradd -U --uid 1000 -ms /bin/bash tfoote Commands below run as the developer userUSER tfoote ^^^^^^ building > Fetched 428 kB in 1s (355 kB/s) Ahh looking closer you're running on bionic while I'm running on xenial. I guess that the files are in different locations in the bionic base image. :-\ It looks like we'll need more conditional logic. |
For bionic and up, wouldn't we only need to install See back to osrf/docker_templates#33 (comment) |
Resolves #14 Build on top of the image based os detection and eliminate os detection dependency.
Resolves #14 Build on top of the image based os detection and eliminate os detection dependency.
The auto generated Dockerfile seems to encounter a build issue in the first stage of it multistage build.
Would be nice if the rocker could forward the build error to the printout, rather than needing to manually build the same dockerfile to identify the exact error.
Dockerfile
The text was updated successfully, but these errors were encountered: