From ac5508c0e36f5949cd0cbaf8a8d16ac7ac3964fb Mon Sep 17 00:00:00 2001 From: c10l Date: Sat, 23 Mar 2024 11:15:23 +0000 Subject: [PATCH] fix(devcontainer): Add packages required by grpcio When running `pip3 install --user -r zephyr/scripts/requirements.txt` (last step on https://zmk.dev/docs/development/setup), grpcio install fails with the following error: FileNotFoundError: [Errno 2] No such file or directory: c++: c++ This happens due to missing dev tooling in the container. --- Dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index aa52a9c5..23ed5f41 100644 --- a/Dockerfile +++ b/Dockerfile @@ -51,6 +51,7 @@ RUN \ && echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_18.x nodistro main" | tee /etc/apt/sources.list.d/nodesource.list \ && apt-get -y update \ && apt-get -y install --no-install-recommends \ + build-essential \ clang-format \ gdb \ gpg \ @@ -97,7 +98,7 @@ RUN \ && apt-get -y install --no-install-recommends \ wget \ xz-utils \ - && cd ${TMP} \ + && cd ${TMP} \ && wget -q "https://github.com/zephyrproject-rtos/sdk-ng/releases/download/v${ZEPHYR_SDK_VERSION}/${minimal_sdk_file_name}.tar.xz" \ && tar xvfJ ${minimal_sdk_file_name}.tar.xz \ && mv zephyr-sdk-${ZEPHYR_SDK_VERSION} /opt/ \