-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathDockerfile.esp32_fuseblower
32 lines (28 loc) · 1.18 KB
/
Dockerfile.esp32_fuseblower
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
# Docker image used to build and sign ESP-IDF images for SBV2 in development
#
# WARNING: DON'T use the default SBV2_PRIVATE_KEY in production!!!
#
# To build Docker image, call `docker build` from the current directory of this
# file
#
# Reference:
# - https://docs.espressif.com/projects/esp-idf/en/latest/esp32/get-started/linux-macos-setup.html
FROM ghcr.io/thistletech/devenv_idf_base:ac9abb297be64e86401562e04435fca316a38dff
# sdkconfig file used to build IDF apps (non-MCUboot), for secure boot related
# stuff
ARG IDF_SDKCONFIG="sdkconfig.sbv2_nojtag"
# Private key used to sign SBV2 images during build. Key file must be under keys
ARG SBV2_PRIVATE_KEY="sbv2_private_dev.pem"
COPY --chown=esp:dialout keys/${SBV2_PRIVATE_KEY} ${HOME}/keys/sbv2_private.pem
COPY --chown=esp:dialout configs ${HOME}/configs
COPY --chown=esp:dialout apps ${HOME}/apps
# Build void app, sign using private key PEM file
RUN cd ${HOME} && \
. esp-idf/export.sh && \
cd ${HOME}/apps && \
ln -sf ../configs/${IDF_SDKCONFIG} sdkconfig.apps && \
ln -sf ../keys/sbv2_private.pem sbv2_private_pem.app && \
cd ${HOME}/apps/void_app && \
idf.py set-target esp32 && \
idf.py build
CMD ["/bin/bash"]