-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Create a docker image #24
base: master
Are you sure you want to change the base?
Conversation
2d15441
to
16a0968
Compare
I just tried adding these 3 files to the
I could be missing something simple but thanks for any help and thanks for putting this together! |
* Creates an Ubuntu 14.04, tightvnc, bazel image with all the dependencies for building and running lab. * Does an initial compile using 'bazel build :deepmind_lab.so --define headless=osmesa' * Run headless with 'bazel run :random_agent --define headless=osmesa' Issues: * OpenGL currently doesn't work properly for some reason, so running the non-headless version doesn't work. See https://ubuntuforums.org/archive/index.php/t-2257096.html
* After much debugging, it seems xvfb (virtual frame buffer) needed to be implemented to get opengl working properly. * Switched to using our own from-stratch Dockerfile based on Ubuntu 14.04 * Switched to x11vnc instead of tightvnc since tightvnc didn't seem to work, but not sure if that's still an issue or not. * Added lots of documentation around the various settings used. * Using fluxbox instead of lxdm because it was lighter weight.
16a0968
to
f25f642
Compare
@bridgo Your issue was indeed a bug with the permissions of the vnc.sh file. I have this actually working well right now. Seems the issue was that there wasn't a proper display. I needed to use xvfb (virtual/dummy frame buffer) and then tools like glxinfo worked properly. It can now run headless=false .. even though it's effectively running headless (no monitors) because of xvfb. However if you VNC into the container and run a bazel build, you'll see it on the screen as well. Lots of cleanup of the Dockerfile and script as well... I worked on this way too late. If someone wanted to try it out you'll want to do something like:
|
I put all three files in the same directory and ran The 'run' command is only supported from within a workspace.
The command '/bin/sh -c bazel run :python_module_test --define headless=osmesa' returned a non-zero code: 2 Also, trying edit: I am running the commands in an ubuntu 17.04 vm, on a windows 7 computer. |
Thanks for the scripts. Is there a way to control the size of the lab screen inside VNC? The default is quite small. |
31fe629
to
87f8993
Compare
libsdl2-dev \ | ||
libosmesa6-dev \ | ||
python-dev \ | ||
python-numpy \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You should probably add python-pil, now that we sort of depend on it.
Currently build does not complete. Similar to #106. |
I'm also trying to use this docker image, and this does not build. Has anyone managed to get a modified version to build? |
@ryanprinster e: A few hours later, I've found that scalable_agents has a Dockerfile that works just fine. |
building and running lab.
'bazel build :deepmind_lab.so --define headless=osmesa'
'bazel run :random_agent --define headless=osmesa'
Issues:
the non-headless version doesn't work. See
https://ubuntuforums.org/archive/index.php/t-2257096.html