-
Notifications
You must be signed in to change notification settings - Fork 480
PX4 Docker containers #232
Comments
G'day, I just followed the instructions on this too (my they assume you know a lot about docker) - running inside a Ubuntu 16.04 VM on Windows. When you say that the makefile directory was present - you mean that you can see it within docker? I entered near-identical instructions - the main difference being use of sudo and also specified the source tree:
When I try build anything I don't get missing Makefile errors ...
Instead I get permission denied errors when make tries to create the build directories (followed by recipe fails). Any ideas on that? |
PS Just some notes on docs for when/if I come to document this:
|
Yes. If I am within the docker container px4_ros_sim and go to the directory Not sure why you get permission denied or even why you should be root. |
From docker install guide: "You need to use sudo to run Docker commands. Continue to Linux postinstall to allow non-privileged users to run Docker commands and for other optional configuration steps." Either way, clearly docs broken. |
but |
Sorry, I was unclear. I ran docker itself using sudo (i.e. |
true: this is needed |
Actually it wasn't enough - I still got permission errors. I've just used chmod to give full access to my current user over the host folder (not clear why they didn't have it). Everything building now. Things would probably go smoother if I was better at linux. |
Sorry, didn't mean to close! Also, I don't appear to have got closer to helping you. |
@hamishwillee |
@Stifael Don't know if you saw, but Daniel's scripts for CI might be helpful: PX4/PX4-containers#65 (comment) |
I am not sure what is missing when i try to set up a docker container with mapping my local_src directory to the container.
The steps that I took are pretty much the same as in the documentation here.
1.) pull docker file:
docker pull px4io/px4-dev-ros:2017-05-31
2.)
xhost +
docker run -it --privileged \
-v <src_to_local_firmware>:/src/firmware/:rw \
-v /tmp/.X11-unix:/tmp/.X11-unix:ro \
-e DISPLAY=:0 \
-p 14556:14556/udp \
--name=px4_ros_sim px4io/px4-dev-ros:2017-05-31 bash
I also tried to pull different images of the px4-dev-ros (the latest and v1.0). In all attempts I successful entered the container and the Firmware was in the
/src/firmware
as expected, but I was not able to build anything but received the error that no Makefile was found (despite having a Makefile in the directory)The text was updated successfully, but these errors were encountered: