Docker containers for building deviation

More
16 May 2016 19:48 #48544 by HappyHarry
Replied by HappyHarry on topic Docker containers for building deviation
it works as intended, and it's perfectly usable as is, plus it's a huge step up from what was previously available for people to build their own images so i'm pretty sure most won't care that it's not that pretty to look at lol, also if they do want prettier (well a little bit anyway :D ) then they can set up a linux vm and install/setup the docker images in there instead :)

Please Log in or Create an account to join the conversation.

More
16 May 2016 22:34 #48558 by PhracturedBlue
Replied by PhracturedBlue on topic Docker containers for building deviation
Since I got 'dmake' working, I've used the container exclusively for my builds (well, I still do the linux emu builds using regular 'make', though there isn't really any reason why). I'm really happy with the setup, so going forward, this is likely to be the only way I support doing builds. It probably needs a gui mechanism to change branches and maybe some other usability enhancements, but I really like this direction Hopefully the upcoming 'docker for mac/winodws' will ease the installation further as well.

Please Log in or Create an account to join the conversation.

More
21 May 2016 20:28 #48978 by FDR
I get this kind of warnings during the builds:
......
  adding: filesystem/devo8/template/6ch_heli.ini (deflated 69%)
  adding: filesystem/devo8/template/heli_std.ini (deflated 76%)
  adding: filesystem/devo8/tx.ini (deflated 44%)
make[1]: warning:  Clock skew detected.  Your build may be incomplete.
Is that normal?
After the build is complete, it doesn't return to the menu...

Please Log in or Create an account to join the conversation.

More
21 May 2016 20:46 #48980 by HappyHarry
Replied by HappyHarry on topic Docker containers for building deviation
not returning to the menu is usual behaviour, it will just drop back to the docker start terminal when the builds complete. the clock skew warning is mostly likely a clock setting difference between the host machine and the vm, so the file timestamps don't tally properly

Please Log in or Create an account to join the conversation.

More
29 May 2016 19:00 #49518 by FDR
Does the docker build write a log file somewhere?
To output doesn't fit into the buffer size, so I can't review all the warnings I got.
There are quite a few...

Please Log in or Create an account to join the conversation.

More
29 May 2016 23:53 - 29 May 2016 23:53 #49528 by HappyHarry
Replied by HappyHarry on topic Docker containers for building deviation
I'm not sure if it has one bud, but you could run the build in question manually using dmake and pipe stdout to a txt file
Last edit: 29 May 2016 23:53 by HappyHarry. Reason: big fingers, small bloody phone keyboard!

Please Log in or Create an account to join the conversation.

More
31 May 2016 14:29 #49652 by djtrance
Replied by djtrance on topic Docker containers for building deviation
Hi, I'm working on mac with cocker, but I didn't know how to set the emulator of a devo for mac. because the docker return a .exe file.
how I can set up for mac emulator?

Please Log in or Create an account to join the conversation.

More
31 May 2016 16:02 #49656 by PhracturedBlue
Replied by PhracturedBlue on topic Docker containers for building deviation
there are no instructions for buliding Mac emulators at this time. To do so would require setting up a mac cross-compiler for Linux
It looks doable, but possibly complicated:
github.com/tpoechtrager/osxcross

Please Log in or Create an account to join the conversation.

More
02 Jun 2016 00:19 #49792 by mwm
The other alternative is to try building the emulator target on your Mac instead of in the docker container. You'll need a source checkout outside of the docker image and the native compilers, but won't need any cross compilers. You'll also need all the dependent libraries, so you may want to look into something like homebrew or NIX. This works fine on freebsd for x, but I've never tried it on OSX.

Do not ask me questions via PM. Ask in the forums, where I'll answer if I can.

My remotely piloted vehicle ("drone") is a yacht.

Please Log in or Create an account to join the conversation.

More
06 Jun 2016 14:05 #50036 by djtrance
Replied by djtrance on topic Docker containers for building deviation
I have not to much time find the solution and I really want to work again into the f7 firmware, I thing I will work on linux until I find a solution for mac.

Please Log in or Create an account to join the conversation.

More
15 Jun 2016 01:23 #50640 by kahuna001
Replied by kahuna001 on topic Docker containers for building deviation
Just want to chime in.
Docker on VirtualBox VM looked like Windows version without the nice box.

To fix it.
Open terminal from OSX.
type in - eval $(docker-machine env)
type in - docker start -i deviation_build

and it will run in terminal with the correct text and graphic.

Please Log in or Create an account to join the conversation.

More
15 Jun 2016 21:09 #50667 by mwm
Any chance of adding the ability to use the deviation uploader to do an install, or maybe another docker image for that? Using a Linux VM on Windows to do the install avoids the headaches of getting the driver installed, so it might be worthwhile to have an easy way to do that.

Do not ask me questions via PM. Ask in the forums, where I'll answer if I can.

My remotely piloted vehicle ("drone") is a yacht.

Please Log in or Create an account to join the conversation.

More
23 Jul 2016 01:23 #52034 by Leon
Replied by Leon on topic Docker containers for building deviation
HI PhracturedBlue
How can i building my development deviation in the Docker?

Please Log in or Create an account to join the conversation.

More
06 Aug 2016 13:05 #52497 by NathanBarguss
Replied by NathanBarguss on topic Docker containers for building deviation
Hi all!

I'm having problems trying to get docker setup to build my own code and wonder if anyone can point me to what I'm doing wrong?

I'm trying to build on Windows 7 enterprise.

I have the Deviation source checked out, and it looks like:
c:\_DEV\deviation\
.git\
src\
doc\
utils\
...

I have docker installed and working (generating builds to c:\users\devo_builds) but it seems to be pulling direct from github rather than my own modifications locally.

I created the docker container with:
docker create -it -v ~/devo_builds:/release -v /c/_DEV:/git --name deviation_build deviationtx/deviation-docker

Then running
docker start -i deviation_build

Generates build zips without errors, but not of my own local changes?

I get the feeling I'm doing something stupid, so if anyone can help, please let me know.

Cheers,
Nathan

Please Log in or Create an account to join the conversation.

More
07 Aug 2016 00:01 #52512 by HappyHarry
Replied by HappyHarry on topic Docker containers for building deviation
in your C:/_DEV/deviation folder is it your own fork of deviation that's cloned there? also you can deselect the 'update GIT before build' radio button before actually building the firmware, then it will use the code in the current folder

Please Log in or Create an account to join the conversation.

More
07 Aug 2016 09:11 #52527 by NathanBarguss
Replied by NathanBarguss on topic Docker containers for building deviation
Hi HappyHarry

Yup, I'd not de-selected the update-git option! >.< - Thank you! :)

Please Log in or Create an account to join the conversation.

More
27 Sep 2016 01:31 #54311 by Cereal_Killer
Replied by Cereal_Killer on topic Docker containers for building deviation
Hello, I FINALLY manned up and built my first ever build using the main deviation repo pulled automatically, had several issues but got worked threw them and got it! My real goal is to build my own but there arnt nearly as detailed instructions for that but I'm working on it (with the help of this thread and super outdated YT videos lol)...

The issue I'm having right at the moment is that it takes like 25 minutes to build cause no matter what build options I select it builds EVERYTHING, EVERY TIME.

All I want is a devo10 and a devo7E.256 build, that's the only two options I tick but it builds everything, why? How do I stop that?

Taranis X9E | DEVO 10 | Devo U7E | Taranis Q7

What I do in real life: rivergoequestrian.com/

Please Log in or Create an account to join the conversation.

More
28 Sep 2016 12:44 #54367 by Cereal_Killer
Replied by Cereal_Killer on topic Docker containers for building deviation
Guys, anyone have any idea? I've tried several more times (each build taking 20+ or so minutes) and it just keeps building all options and ignoring the check list of options I want.


Is it even worth it? If i only have it do the two bilds that I want will it not take as long? Because that's the whole thing I'm trying to get rid of, that's my only grievance is it literally takes over 20 minutes to sit there and build all options so I was thinking that if I just built the two options that I need it wouldn't take so long, is that not the case because if it's going to take the same amount of time no matter how many options I build there's no reason to even look into it more...

Taranis X9E | DEVO 10 | Devo U7E | Taranis Q7

What I do in real life: rivergoequestrian.com/

Please Log in or Create an account to join the conversation.

More
28 Sep 2016 13:02 #54369 by HappyHarry
Replied by HappyHarry on topic Docker containers for building deviation
i've no idea bud, both my windows version and my linux version work as expected. also no it's much quicker building only for 2 tx's although 20 minutes sounds way too long, even when i build all tx's and emulators it only takes about 3 minutes

Please Log in or Create an account to join the conversation.

More
29 Sep 2016 16:00 #54398 by hexfet
Replied by hexfet on topic Docker containers for building deviation
Have you tried building with dmake? in the src directory, ../dmake TARGET=devo7e-256

On linux my first goto check for weird issues is file permissions and ownership...

Please Log in or Create an account to join the conversation.

Time to create page: 0.076 seconds
Powered by Kunena Forum