Docker container for building

Post Reply
User avatar
Bigpie
Posts: 1595
Joined: Wed Apr 10, 2019 8:11 pm
Location: South Yorkshire, UK
Has thanked: 75 times
Been thanked: 304 times

Docker container for building

Post 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.
VW Beetle 2003
Outlander front generator
Prius Gen 3 inverter (EVBMW logic board)
Outlander charger
3x Golf GTE batteries
Chademo Charging
Outlander water heater
User avatar
johu
Site Admin
Posts: 5791
Joined: Thu Nov 08, 2018 10:52 pm
Location: Kassel/Germany
Has thanked: 157 times
Been thanked: 1025 times
Contact:

Re: Docker container for building

Post 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
Support R/D and forum on Patreon: https://patreon.com/openinverter - Subscribe on odysee: https://odysee.com/@openinverter:9
User avatar
johu
Site Admin
Posts: 5791
Joined: Thu Nov 08, 2018 10:52 pm
Location: Kassel/Germany
Has thanked: 157 times
Been thanked: 1025 times
Contact:

Re: Docker container for building

Post 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.
Support R/D and forum on Patreon: https://patreon.com/openinverter - Subscribe on odysee: https://odysee.com/@openinverter:9
User avatar
Bigpie
Posts: 1595
Joined: Wed Apr 10, 2019 8:11 pm
Location: South Yorkshire, UK
Has thanked: 75 times
Been thanked: 304 times

Re: Docker container for building

Post 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.
VW Beetle 2003
Outlander front generator
Prius Gen 3 inverter (EVBMW logic board)
Outlander charger
3x Golf GTE batteries
Chademo Charging
Outlander water heater
Post Reply