paparazzi-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Paparazzi-devel] Should we merge support for running Paparazzi in D


From: Felix Ruess
Subject: Re: [Paparazzi-devel] Should we merge support for running Paparazzi in Docker?
Date: Tue, 7 Jul 2015 21:12:22 +0200

Hi Michal,

cool that you tested it.

I didn't do anything special... except that at some point before using docker for paparazzi I created a docker group and added myself:
http://docs.docker.com/installation/ubuntulinux/#optional-configurations-for-docker-on-ubuntu

I can ping github or update the submodule from within docker just fine (I'm currently running Docker version 1.7.0, build 0baf609).
Getting the background maps, etc. works fine as well...

As a workaround you can fetch all the submodules on your host before starting docker:
git submodule update --init

Hope that helps,
Felix

On Tue, Jul 7, 2015 at 8:54 PM, Michal Podhradsky <address@hidden> wrote:
it looks like a good idea, but I am not able to make it running. I can start paparazzi in docker, and start compiling - but can't connect to github to get libopencm3 library (can't ping github.com but "ping 4.2.2.2" works).
I tracked down the issue to the iptables settings on host, but docker doesn't seem to offer an easy solution (https://docs.docker.com/articles/networking/#the-world).
Did you have to do something special to get it running?
M

On Fri, Jul 3, 2015 at 7:36 AM, Felix Ruess <address@hidden> wrote:
I have never tried it (don't have Windows)... In theory it should work ;-)

You will most likely have some annoyances with different line endings (Unix vs. DOS) in the files since the paparazzi directory is shared between the host platform and docker.
Also I'm not sure if forwarding usb ports works on windows...

Test it and report back ;-)


On Fri, Jul 3, 2015 at 4:29 PM, Bart Remes <address@hidden> wrote:

Can we also run easily on windows then?

Bart

Op 2-jul.-2015 19:01 schreef "Felix Ruess" <address@hidden>:
Hi guys,

I just had to run some Paparazzi tests on a machine again where I didn't have all dependencies installed but had access to Docker.
Some months ago I already set up some Docker files and it is actually working quite nicely for me.

So the question is if this would be useful for someone else as well (maybe as a faster alternative to a virtual machine)?
If yes, I can commit it to the official repo...

If you want to test it out:

$ cd paparazzi/docker
$ make pull
then you should have the docker images...
Run a shell in docker:
$ make bash
or
$ make terminator
Then you are in the docker container and you can compile/start paparazzi as usual...
If you already compiled paparazzi within docker, you can also directly run paparazzi the next time:
$ make paparazzi
or
$ make start

/dev/ttyx and /dev/ACMx devices are also automatically forwarded to docker and you can flash and use telemetry from within docker.

Let me know what you think


Cheers, Felix

_______________________________________________
Paparazzi-devel mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/paparazzi-devel


_______________________________________________
Paparazzi-devel mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/paparazzi-devel



_______________________________________________
Paparazzi-devel mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/paparazzi-devel



_______________________________________________
Paparazzi-devel mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/paparazzi-devel



reply via email to

[Prev in Thread] Current Thread [Next in Thread]