Skip to content

Commit 2243c61

Browse files
committed
improved Docker image size and documentation
1 parent a3a6fa3 commit 2243c61

File tree

2 files changed

+10
-7
lines changed

2 files changed

+10
-7
lines changed

Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ RUN wget https://ftp.gnu.org/gnu/autoconf/autoconf-2.71.tar.xz && \
1515
make install
1616
ENV PATH="$PATH:/app/autoconf-2.71/root/bin"
1717

18+
RUN rm -rf autoconf-2.71*
19+
1820
#COPY esp32-linux-build/* /app/
1921
RUN chmod a+rwx /app
2022

README.md

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22
# ESP32 S3 Linux - Docker builder
33

4-
The initial version was a Dockerfile ported by Adafruit from the work of [@jcmvbkbc](https://gist.github.com/jcmvbkbc/316e6da728021c8ff670a24e674a35e6). The current version using the last version of the build scripts like a git submodule and has some improvements on the DockerFile to support USB flashing.
4+
The initial version was a Dockerfile ported by Adafruit from the work of [@jcmvbkbc](https://gist.github.com/jcmvbkbc/316e6da728021c8ff670a24e674a35e6). The current version uses the last version of the build scripts like a git submodule and it has some improvements on the DockerFile to support USB flashing.
55

66
<table>
77
<tr>
@@ -65,7 +65,9 @@ After that you should have this message:
6565

6666
![ESP32S3 Linux finish build](screenshots/docker_build_before_flash.jpg)
6767

68-
5. Open a different terminal and enter to the running container:
68+
## Flashing
69+
70+
1. Open a different terminal and enter to the running container:
6971

7072
```bash
7173
docker exec -it -u root esp32s3linux bash
@@ -77,22 +79,21 @@ and change the docker USB device permissions:
7779
chmod 666 /dev/ttyACM0
7880
```
7981

80-
6. Return to the main terminal and perform the flashing. And that's it!
82+
2. Return to the main terminal and perform the flashing. And that's it!
8183

8284
![ESP32S3 Linux final flashing](screenshots/docker_flashing.jpg)
8385

8486
---
8587

86-
## Updates
88+
# Updates
8789

88-
Before the first build and flashing, you can keep the sources and working directories changing the `settings.cfg` file. Also don't forget update the git submodules like this:
90+
After the first build and flashing, you can keep the sources and working directories changing the `settings.cfg` file and repeating the steps from the step 4. Also don't forget update before, the git submodules like this:
8991

9092
```bash
9193
git submodule update --init --recursive
9294
```
9395

94-
95-
96+
For clean the working directories, please enter to `esp32-linux-build` and remove the build directory.
9697

9798
# Linux boot
9899

0 commit comments

Comments
 (0)