forked from Batov/esp32_qemu_unity_test_action
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
33 lines (23 loc) · 959 Bytes
/
Dockerfile
File metadata and controls
33 lines (23 loc) · 959 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
FROM espressif/idf:v5.5.2
ARG DEBIAN_FRONTEND=nointeractive
# QEMU
ENV ESP_QEMU_RELEASE=esp-develop-9.2.2-20250817
ENV ESP_QEMU_DIST=qemu-xtensa-softmmu-esp_develop_9.2.2_20250817-x86_64-linux-gnu.tar.xz
ENV ESP_QEMU_URL=https://github.com/espressif/qemu/releases/download/${ESP_QEMU_RELEASE}/${ESP_QEMU_DIST}
ENV LC_ALL=C.UTF-8
ENV LANG=C.UTF-8
ENV IDF_PYTHON_export_PATH=/opt/esp/python_export/idf5.3_py3.10_export
RUN wget --no-verbose ${ESP_QEMU_URL} \
&& tar -xf ${ESP_QEMU_DIST} -C /opt \
&& rm ${ESP_QEMU_DIST}
ENV UNITY_REL=v2.6.1
ENV UNITY_DIST=${UNITY_REL}.tar.gz
ENV UNITY_URL=https://github.com/ThrowTheSwitch/Unity/archive/refs/tags/${UNITY_DIST}
RUN wget --no-verbose ${UNITY_URL} \
&& tar -xf ${UNITY_DIST} -C /opt \
&& rm ${UNITY_DIST}
ENV PATH=/opt/qemu/bin:${PATH}
RUN echo $($IDF_PATH/tools/idf_tools.py export) >> $HOME/.bashrc
ADD entrypoint.sh /entrypoint.sh
RUN chmod +x /entrypoint.sh
ENTRYPOINT [ "/entrypoint.sh" ]