commit 39ef29cf6afe5014b9e7657db3c81af628fe00ce Author: Lauri Võsandi Date: Tue Mar 15 09:29:18 2022 +0200 Initial commit diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..7e9134b --- /dev/null +++ b/.drone.yml @@ -0,0 +1,16 @@ +--- +kind: pipeline +type: kubernetes +name: default + +steps: +- name: docker + image: plugins/docker + settings: + repo: harbor.k-space.ee/${DRONE_REPO} + registry: harbor.k-space.ee + mtu: 1300 + username: + from_secret: docker_username + password: + from_secret: docker_password diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..d9d759c --- /dev/null +++ b/Dockerfile @@ -0,0 +1,12 @@ +FROM espressif/idf:v4.4 +ENV DEBIAN_FRONTEND=noninteractive +RUN : \ + && apt-get update \ + && apt-get install -y pkg-config \ + && 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 +RUN cd /src/mpy-cross && make +RUN cd /src/ports/unix && make submodules && make +RUN cd /src/ports/esp32 && bash -c "source /opt/esp/idf/export.sh && make" +CMD /src/ports/unix/micropython