marcelstoer / docker-nodemcu-build

Docker image to build NodeMCU firmware for the ESP8266 on your machine
https://hub.docker.com/r/marcelstoer/nodemcu-build/
MIT License
131 stars 63 forks source link

Consistent output image names #2

Closed pjsg closed 8 years ago

pjsg commented 8 years ago

It would be great if there was a link to the output image that was the same for each build (it can have the branch name). This would make the build/burn cycle easier as I don't need to change the input filename for the burner after each build. I was thinking that add a 'ln -f ' would suffice.

marcelstoer commented 8 years ago

@alkorin was requesting something similar the other day.

He proposed to support passing the image name to the Docker command like so docker run -e "IMAGE_NAME=foo" .... I'll implement that (and a few more improvements) in the next days.

Alkorin commented 8 years ago

:+1:

pjsg commented 8 years ago

Also, can you save the mapfile along with the image so that I can find the right mapfile when I get a crash (now that the node.bootreason() returns pointers!!)

marcelstoer commented 8 years ago

@pjsg not sure I understand. The mapfile is created in app/in your firmware directory. Maybe you were expecting it in bin/ (like I did)?

pjsg commented 8 years ago

Yes -- the mapfile is created in app/ but then promptly overwritten by the next build. You don't ever get to see the float version of the mapfile as it is overwritten by the integer build. What I would like is to have the mapfile copied into the bin directory with a name just like the bin file (but ending with .map or similar)

marcelstoer commented 8 years ago

Ah, got it. Thanks for the clarification.

marcelstoer commented 8 years ago

Due to Docker's odd interpretation of what latest means you need to run docker pull marcelstoer/nodemcu-build explicitly to work with the updated image if Docker downloaded it previously.