Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Could there be an official docker image for esp-idf? (IDFGH-1304) #3595

Closed
ghost opened this issue Jun 6, 2019 · 6 comments
Closed

Could there be an official docker image for esp-idf? (IDFGH-1304) #3595

ghost opened this issue Jun 6, 2019 · 6 comments

Comments

@ghost
Copy link

ghost commented Jun 6, 2019

Hi!

Docker is mighty useful and more and more popular.
I'm using it to have an easy to update/replace esp-idf on Windows which only requires docker installed.

Is there any chance of having an official docker image for this?

Currently I'm running Travis builds using this: https://github.com/cranphin/esp32-idf-docker
This uploads an image on docker hub: https://hub.docker.com/r/cranphin/esp32-idf
Travis isn't needed, Docker hub has build automation built in, but doesn't support daily build (only builds triggered by code changes).
Mayby this could provide a sample of how to do this :)

@github-actions github-actions bot changed the title Could there be an official docker image for esp-idf? Could there be an official docker image for esp-idf? (IDFGH-1304) Jun 6, 2019
@igrr
Copy link
Member

igrr commented Jun 6, 2019

Hi @cranphin, yes, providing esp-idf docker images for release versions is something we plan to do. Thank you for the hint about Docker Hub automated builds. They indeed look more straightforward than the previous idea we had (build in our internal CI and push to the Docker Hub).

@dobairoland
Copy link
Collaborator

The docker file is available here: https://github.com/espressif/esp-idf/tree/master/tools/docker

@igrr
Copy link
Member

igrr commented Apr 28, 2020

@gavril0
Copy link

gavril0 commented Jun 22, 2020

Hi,

I would like to setup an full environment in a container to develop for ESP32 on Windows 10 with Visual Studio Code. In the container, I would expect to install ESP-IDF SDK and all needed tools (gcc, ninja, python, ...) to avoid conflict with other versions of these tools installed for other projects (e.g. RTools) and to manage Windows PATH env variable. I don't want/need PlatformIO and prefer to use Epresssif tool sdirectly.

I would also like to build, flash and debug from VS Code. I have seen that it is in principal possible to access serial port from windows container:

https://docs.microsoft.com/en-us/virtualization/windowscontainers/deploy-containers/hardware-devices-in-containers

but people working with ESP seems to use WSL2 and Linux containers on Windows and, apparently, it is not straightforward to connect to serial port in this case (see @cranphin above). Ideally, I would like to avoid Linux on Windows if possible.

Is there some instructions about the steps? Sorry if some questions might appear naive but I never used containers, ESP32, VSCode. I am an academic who has done mostly C/C++/WinAPI with Visual Studio and has limited familiarity with git, linux and most web technologies.

Thanks

P.S. Sorry if I should I have open a new issue rather than left a comment.... I am also new at that.

@igrr
Copy link
Member

igrr commented Jun 23, 2020

Hi @gavril0,

In the container, I would expect to install ESP-IDF SDK and all needed tools (gcc, ninja, python, ...) to avoid conflict with other versions of these tools installed for other projects (e.g. RTools) and to manage Windows PATH env variable.

Starting from IDF v4.0, it is no longer necessary to modify Windows PATH variable to develop with ESP-IDF. This is true both for the command line tools and for Espressif VS Code extension. I recommend giving this option a try, if you prior experience includes native Windows development. You can get the tools installed using ESP-IDF Tools installer: https://docs.espressif.com/projects/esp-idf/en/stable/get-started/windows-setup.html#esp-idf-tools-installer. (If you would like more information on how the tools are installed, and why the system PATH doesn't need to be modified, please see this document).

https://docs.microsoft.com/en-us/virtualization/windowscontainers/deploy-containers/hardware-devices-in-containers

This page refers to Windows containers running on Windows. Unfortunately serial ports are still not available to Linux containers running on Windows, see docker/for-win#1018 (comment). There are some possible workarounds, including forwarding the serial port into the container over TCP (RFC2217), but nothing we can really recommend as a good "getting started" option yet.

@ghost
Copy link
Author

ghost commented Jun 30, 2020

Yeah, I was/am hoping wsl2 will support it at some point :)
In the meanwhile a hacked RFC2217 has been working for me (See https://github.com/cranphin/esp32_win_buildscripts)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants