Building with Docker

More
15 Nov 2017 16:33 #65855 by Elmtree
Building with Docker was created by Elmtree
I'm following this tutorial so I can start adding some things I'm interested in to deviation:
www.deviationtx.com/wiki/development/docker

I'm able to perform all the steps, but when I run the build command, I can't find the built file. I have found my devo_builds folder that I created, but nothing appears in it. The final output of docker is attached.


Does anything look odd? Where should I be looking. Is it weird that docker put my devo builds folder in SPB_Data?

Thanks
Attachments:

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

More
15 Nov 2017 19:13 #65859 by Moeder
Replied by Moeder on topic Building with Docker
I had a similar issue on my linux system. Just look in the git "src" directory, that's where your compiled file should rest in.

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

More
15 Nov 2017 19:22 #65860 by Elmtree
Replied by Elmtree on topic Building with Docker
In this case I wasn't pointing to my local git repo, I was doing this version:
docker create -it -v ~/devo_builds:/release --name deviation_build deviationtx/deviation-docker

When I tried to do my own git repo it gives me the error


Is that command incorrect?
Attachments:

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

More
15 Nov 2017 19:40 - 15 Nov 2017 19:41 #65861 by Moeder
Replied by Moeder on topic Building with Docker
Did you create the directory "devo_builds" in your home directory before creating the docker container?
When using your local repo: does it have blanks in the path?

I strongly recommend using a local git repo for development work.
Last edit: 15 Nov 2017 19:41 by Moeder.

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

More
15 Nov 2017 19:56 #65862 by Elmtree
Replied by Elmtree on topic Building with Docker
Yes, I have the devo_builds folder, but for some reason it's in the folder SPB_Data.

No spaces in the path if that's what you mean. Should I put quotes around it anyways? The issue seems to be with the :/git after the path though.

I definitely intend to use a local repo, I just wanted to see if any of the compilations worked.

Thanks for the help BTW

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

More
15 Nov 2017 20:14 #65863 by Elmtree
Replied by Elmtree on topic Building with Docker
Ok just to confirm, This should compile the code from my git directory and spit it out in c:/SPB_data/devo_builds if the terminal is at C
docker create -it -v ~/SPB_data/devo_builds:/release -v ~/PATH/TO/GIT/HEAD:/git --name deviation_sumd_build deviationtx/deviation-docker

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

More
15 Nov 2017 20:31 #65864 by Moeder
Replied by Moeder on topic Building with Docker
Sorry, my Windows days are long gone, so I'm probably of no help... Does "~" not usually point to your users home directory?

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

More
15 Nov 2017 21:03 #65865 by Elmtree
Replied by Elmtree on topic Building with Docker
You're totally right. I'll try again without the ~/ and see if anything appears. Though I think I was already in the home directory so the first time should have worked

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

More
15 Nov 2017 21:31 #65866 by FDR
Replied by FDR on topic Building with Docker
It was a pain to get it work on Windows with that old docker version using the VirtualBox virtual machine.
Now I use the native virtualization capability of the Win10 Pro with a new Docker, which this way doesn't need the VirtualBox anymore, and you can use it from the Windows command prompt using normal Windows paths, like this:
docker create -it -v D:\deviation\git\DeviationTX:/git -v D:\deviation\builds\deviation:/release --name deviation deviationtx/deviation-docker
Furthermore the form has normal borders, unlike back then...

If I remember well, the ~/ pointed to the user's root directory, i.e. C:\Users\XXXX\

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

More
15 Nov 2017 22:20 #65867 by Elmtree
Replied by Elmtree on topic Building with Docker
I'll try both of those. I'm on Windows 8.1 if that helps anyone's

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

More
17 Nov 2017 15:45 #65935 by Elmtree
Replied by Elmtree on topic Building with Docker
So I figured out where my home directory is and moved a git repo to be accessible from there because it's one folder deep in my user directory for some reason. Anyways I still get the same results.

The ./dmake command also isn't working. Previously it would get pretty far and then error on no such file for "libopencm3_stm32f1.a"

Any more ideas? I'm running windows 8.1

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

More
17 Nov 2017 16:26 #65936 by Elmtree
Replied by Elmtree on topic Building with Docker
Just want to say that I got it working just using make. To get libopencm3_stm32f1.a I had to navigate to the "libopencm3/lib/stm32/f1" directory and do
make clean
make

Then I could just do make TARGET=devo6 and I got a DFU and a filesystem!

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

More
17 Nov 2017 16:36 #65938 by Moeder
Replied by Moeder on topic Building with Docker
Perfect. Please use "make devo6" instead of "make TARGET=devo6"...I remember there was an issue using the latter command.

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

More
17 Nov 2017 17:06 #65943 by Elmtree
Replied by Elmtree on topic Building with Docker
Good to know. I'll do that. Can't wait to start playing with the code!

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

More
17 Nov 2017 17:25 #65945 by Moeder
Replied by Moeder on topic Building with Docker
You're welcome. Eager to see your contributions ;)

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

Time to create page: 0.083 seconds
Powered by Kunena Forum