From c17fcb5ddd3499bb5e654d268d89d4621465b308 Mon Sep 17 00:00:00 2001 From: zhanghongyu Date: Mon, 4 Dec 2023 23:34:16 +0800 Subject: [PATCH] ci_sim: the version of nodejs obtained by apt install is too low so using npm to upgrade the nodejs tool to the latest Signed-off-by: zhanghongyu --- tools/ci/docker/linux/Dockerfile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tools/ci/docker/linux/Dockerfile b/tools/ci/docker/linux/Dockerfile index 5a63fc28d3..efde699d80 100644 --- a/tools/ci/docker/linux/Dockerfile +++ b/tools/ci/docker/linux/Dockerfile @@ -295,6 +295,7 @@ RUN apt-get update -qq && DEBIAN_FRONTEND="noninteractive" apt-get install -y -q linux-headers-generic \ linux-libc-dev:i386 \ ninja-build \ + npm \ qemu-system-arm \ qemu-system-misc \ python3 \ @@ -333,9 +334,13 @@ RUN pip3 install pytest==6.2.5 RUN pip3 install pytest-json==0.4.0 RUN pip3 install pytest-ordering==0.6 RUN pip3 install pytest-repeat==0.9.1 -# Install lark and stringcase for matter build +# Install lark stringcase and jinja2 for matter build RUN pip3 install lark RUN pip3 install stringcase +RUN pip3 install jinja2 + +# Upgrade nodejs to the latest version +RUN npm install -g n && n stable && hash -r # Used to generate symbol table files