This is an automated email from the ASF dual-hosted git repository.

xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git


The following commit(s) were added to refs/heads/master by this push:
     new c17fcb5ddd ci_sim: the version of nodejs obtained by apt install is 
too low
c17fcb5ddd is described below

commit c17fcb5ddd3499bb5e654d268d89d4621465b308
Author: zhanghongyu <zhanghon...@xiaomi.com>
AuthorDate: Mon Dec 4 23:34:16 2023 +0800

    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 <zhanghon...@xiaomi.com>
---
 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
 

Reply via email to