Skip to content

Commit e3675e8

Browse files
committed
update dockerfile
1 parent 6fc7978 commit e3675e8

File tree

2 files changed

+24
-3
lines changed

2 files changed

+24
-3
lines changed

dev_tool/docker/build_mros2.bash

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
SCRIPT_DIR=/mros2-esp32/workspace/target/
33

44
. /esp/esp-idf/export.sh
5-
cd /jinja2 && pip3 install .
65

76
cd ${SCRIPT_DIR}
87
rm -rf ${SCRIPT_DIR}/build/

dev_tool/docker/esp_idf.dockerfile

Lines changed: 24 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,26 @@
1-
FROM espressif/idf:release-v5.1
1+
FROM ubuntu:22.04
2+
3+
ENV TZ=Asia/Tokyo
4+
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
5+
ENV DEBIAN_FRONTEND=noninteractive
6+
7+
RUN apt update && apt install locales && \
8+
locale-gen en_US en_US.UTF-8 && \
9+
update-locale LC_ALL=en_US.UTF-8 LANG=en_US.UTF-8 && \
10+
apt -y clean && \
11+
rm -rf /var/lib/apt/lists/*
12+
ENV LANG=en_US.UTF-8
13+
14+
RUN apt-get update && \
15+
apt-get install -y \
16+
git wget flex bison gperf python3 python3-venv cmake ninja-build ccache libffi-dev libssl-dev dfu-util libusb-1.0-0
17+
18+
RUN mkdir -p /esp
19+
RUN cd /esp && git clone --recursive https://github.com/espressif/esp-idf.git -b v5.2-dev && \
20+
cd /esp/esp-idf && \
21+
./install.sh all
22+
23+
RUN /bin/bash -c "source /esp/esp-idf/export.sh && \
24+
pip3 install jinja2"
225

3-
RUN git clone https://github.com/pallets/jinja.git -b 3.1.2 /jinja2
426
COPY ./build_mros2.bash /tmp/build_mros2.bash

0 commit comments

Comments
 (0)