commit 84a66b04e7a2efb1c1cc11bf529dede9c37c9c3c Author: Lauri Võsandi Date: Tue Mar 15 21:52:26 2022 +0200 Initial commit diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..e7b5dfa --- /dev/null +++ b/.drone.yml @@ -0,0 +1,2 @@ +kind: template +load: docker.yaml diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..522a346 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,14 @@ +FROM ubuntu:focal +ENV DEBIAN_FRONTEND=noninteractive +RUN apt-get update \ + && apt-get install -y build-essential git libffi-dev pkg-config python3 wget \ + && apt-get autoremove -y \ + && rm -rf /var/lib/apt/lists/* +RUN git clone --depth 1 -b v1.18 https://github.com/micropython/micropython.git /src +WORKDIR /src/mpy-cross +RUN make +WORKDIR /src/ports/unix +RUN make submodules +RUN make +ENTRYPOINT /src/ports/unix/micropython +CMD modules/main.py diff --git a/README.md b/README.md new file mode 100644 index 0000000..96dc8ff --- /dev/null +++ b/README.md @@ -0,0 +1,7 @@ +This is MicroPython executable image for `amd64` Linux platform. +It can be used for developing MicroPython applications, +to spin it up use following: + +``` +docker run -it harbor.k-space.ee/k-space/micropython-unix +```