forked from dlktdr/HeadTracker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile.gitpod
25 lines (20 loc) · 1.06 KB
/
Dockerfile.gitpod
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
FROM gitpod/workspace-base:2024-03-06-11-21-33
RUN sudo install-packages git cmake ninja-build gperf \
ccache dfu-util device-tree-compiler wget \
python3-dev python3-pip python3-setuptools python3-tk python3-wheel xz-utils file \
make gcc gcc-multilib g++-multilib libsdl2-dev libmagic1
RUN cd ~ && \
wget --progress=bar:force:noscroll https://github.com/zephyrproject-rtos/sdk-ng/releases/download/v0.16.5-1/zephyr-sdk-0.16.5-1_linux-x86_64_minimal.tar.xz && \
tar xvf zephyr-sdk-0.16.5-1_linux-x86_64_minimal.tar.xz && \
rm zephyr-sdk-0.16.5-1_linux-x86_64_minimal.tar.xz && \
cd zephyr-sdk-0.16.5-1 && \
./setup.sh -t arm-zephyr-eabi -t xtensa-espressif_esp32_zephyr-elf -t riscv64-zephyr-elf -h && \
ln -s ~/zephyr-sdk-0.16.5-1/ ~/zephyr-sdk
RUN pip3 install west
RUN west init ~/zephyr && \
cd zephyr && \
west update && \
west -z ~/zephyr zephyr-export && \
pip3 install -r ~/zephyr/zephyr/scripts/requirements.txt && \
west blobs fetch hal_espressif
RUN echo source /home/gitpod/zephyr/zephyr/zephyr-env.sh >> ~/.bashrc