Skip to content

jedie/docker-micropython

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

docker-micropython

badge.svg

Docker image to compile micropython and freeze modules.

It contains a ready-to-use unix port and mpy-cross and based on the docker image https://hub.docker.com/r/jedie/esp-open-sdk made with: https://github.com/jedie/docker-esp-open-sdk for easier build ESP32/8266 ports.

The ready to use docker image jedie/micropython is build via github actions and pushed to docker hub: https://hub.docker.com/r/jedie/micropython

usage e.g.:

# Just clone the sources:

~$ git clone https://github.com/jedie/docker-micropython.git
~$ cd docker-micropython


# Display all make targets:

~/docker-micropython$ make
make targets:
  help                This help page
  build               build jedie/micropython:latest
  shell               Open bash shell in micropython docker container
  micropython_version print micropython unix port version
  mpy_cross_version   print mpy_cross version
  micropython_shell   Starts micropython unix port as interactive interpreter


# print micropython unix port version:

~/docker-micropython$ make micropython_version 
...
(name='micropython', version=(1, 12, 0), mpy=2821)


# print mpy_cross version:

~/docker-micropython$ make mpy_cross_version 
...
MicroPython 1070984 on 2019-12-30; mpy-cross emitting mpy v5
jens@Intel4790K develop ~/repos/docker-micropython$ make


# e.g.: Starts micropython unix port as interactive interpreter

~/docker-micropython$ make micropython_shell
...
MicroPython 1070984 on 2019-12-30; linux version
Use Ctrl-D to exit, Ctrl-E for paste mode
>>> import sys
>>> sys.implementation
(name='micropython', version=(1, 12, 0), mpy=2821)
>>>

Used here: https://github.com/jedie/micropython-sonoff-webswitch

About

Docker image to compile micropython and freeze modules: https://hub.docker.com/r/jedie/micropython

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy