Page 1 of 1

Docker container for building

Posted: Tue Sep 10, 2019 8:00 pm
by Bigpie
Hi,

I've published to my github a Docker to build the inverter source code. It saves having to setup build dependencies on your machine. I was having issues building on my mac. The README contains instructions

https://github.com/jamiejones85/open-inverter-docker

Let me know if you have any issues.

Re: Docker container for building

Posted: Sat Sep 28, 2019 8:13 am
by johu
Finally got around to testing. So it works :)
As a bit of a Docker dummy: how do I obtain the bin files to use outside the image?

Currently experimenting with gitpod

Re: Docker container for building

Posted: Sat Sep 28, 2019 9:48 am
by johu
Yes that also works.
You need a github account and you need to fork the stm32-sine project to it. Then point your browser to

Code: Select all

 https://gitpod.io/#https://github.com/<yourname>/stm32-sine
It will ask for permissions and then use the Dockerfile included in the repo to set up the build environment. (Basically just installing gcc-arm-none-eabi).

When done an IDE opens within your browser and you can start hacking :)

From now on the usual build procedure applies:
First time

Code: Select all

make get-deps
And to build an image

Code: Select all

CONTROL=SINE make #or CONTROL=FOC make
The stm32_sine or stm32_foc.bin will appear in the explorer on the left where you can right-click and download.

Important: uncommitted changes don't seem to persist. So make sure to commit and push any changes you want to be permanent.
If you want your change added to the mainline then create a branch like "feature/my_new_temp_sensor" and commit. One commit per change, please! Then push and make a new pull request.

Re: Docker container for building

Posted: Sat Sep 28, 2019 11:15 am
by Bigpie
johu wrote: Sat Sep 28, 2019 8:13 am Finally got around to testing. So it works :)
As a bit of a Docker dummy: how do I obtain the bin files to use outside the image?

Currently experimenting with gitpod
I've not used it that much, but you can install binaries by editing the dockerfile.