Skip to content

Instantly share code, notes, and snippets.

@hasheddan
Created March 26, 2023 15:27
Show Gist options
  • Save hasheddan/51ebbaea543d964682e4e565987bd67f to your computer and use it in GitHub Desktop.
Save hasheddan/51ebbaea543d964682e4e565987bd67f to your computer and use it in GitHub Desktop.
FROM ghcr.io/beriberikix/zephyr-xtensa-espressif_esp32:v3.3.0-0.16.0sdk
RUN apt update \
&& apt install -y --no-install-recommends python3-pip \
&& pip3 install pyserial
RUN adduser --disabled-password --gecos "" wokwi
USER wokwi
WORKDIR /home/wokwi/blinky
COPY west.yml .
RUN west init -l .
RUN west update --narrow
WORKDIR /home/wokwi/zephyr
COPY esp32-wokwi.dts samples/basic/blinky/app.overlay
RUN west build -b esp32 samples/basic/blinky -p
# Wokwi builder configuration:
ENV HEXI_SRC_DIR="/home/wokwi/zephyr/samples/basic/blinky/src"
ENV HEXI_BUILD_CMD="west build -b esp32 samples/basic/blinky -p"
ENV HEXI_OUT_HEX="/home/wokwi/zephyr/build/zephyr/zephyr.bin"
ENV HEXI_OUT_ELF="/home/wokwi/zephyr/build/zephyr/zephyr.elf"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment