- Posts: 60
Building with Docker
- Elmtree
-
Topic Author
- Offline
Less
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
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
- Moeder
-
- Offline
Less
More
- Posts: 796
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.
- Elmtree
-
Topic Author
- Offline
Less
More
- Posts: 60
- Moeder
-
- Offline
Less
More
- Posts: 796
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.
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.
- Elmtree
-
Topic Author
- Offline
Less
More
- Posts: 60
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
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
- Elmtree
-
Topic Author
- Offline
Less
More
- Posts: 60
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- Moeder
-
- Offline
Less
More
- Posts: 796
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?
- Elmtree
-
Topic Author
- Offline
Less
More
- Posts: 60
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
- FDR
-
- Offline
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: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\
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-dockerIf I remember well, the ~/ pointed to the user's root directory, i.e. C:\Users\XXXX\
- Elmtree
-
Topic Author
- Offline
Less
More
- Posts: 60
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
- Elmtree
-
Topic Author
- Offline
Less
More
- Posts: 60
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
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
- Elmtree
-
Topic Author
- Offline
Less
More
- Posts: 60
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
Then I could just do make TARGET=devo6 and I got a DFU and a filesystem!
make clean
makeThen I could just do make TARGET=devo6 and I got a DFU and a filesystem!
- Moeder
-
- Offline
Less
More
- Posts: 796
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.
- Elmtree
-
Topic Author
- Offline
Less
More
- Posts: 60
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!
- Moeder
-
- Offline
Less
More
- Posts: 796
17 Nov 2017 17:25 #65945
by Moeder
Replied by Moeder on topic Building with Docker
You're welcome. Eager to see your contributions
Time to create page: 0.693 seconds
-
Home
-
Forum
-
Development
-
Development
- Building with Docker