Upgrade micropython tests to use v1.22, initial circuitpython work
This commit is contained in:
24
tools/Dockerfile.circuitpython
Normal file
24
tools/Dockerfile.circuitpython
Normal file
@@ -0,0 +1,24 @@
|
||||
FROM ubuntu:22.04
|
||||
|
||||
ARG DEBIAN_FRONTEND=noninteractive
|
||||
ARG VERSION=main
|
||||
ENV VERSION=$VERSION
|
||||
|
||||
RUN apt-get update && \
|
||||
apt-get install -y build-essential libffi-dev git pkg-config python3 && \
|
||||
rm -rf /var/lib/apt/lists/* && \
|
||||
git clone https://github.com/adafruit/circuitpython.git && \
|
||||
cd circuitpython && \
|
||||
git checkout $VERSION && \
|
||||
git submodule update --init lib tools frozen && \
|
||||
cd mpy-cross && \
|
||||
make && \
|
||||
cd .. && \
|
||||
cd ports/unix && \
|
||||
make && \
|
||||
make install && \
|
||||
apt-get purge --auto-remove -y build-essential libffi-dev git pkg-config python3 && \
|
||||
cd ../../.. && \
|
||||
rm -rf circuitpython
|
||||
|
||||
CMD ["/usr/local/bin/micropython"]
|
||||
Reference in New Issue
Block a user