From c97988e790b6d0a71d044a5276171292599e9e8f Mon Sep 17 00:00:00 2001 From: Mykola Malkov Date: Tue, 4 Oct 2022 17:36:43 +0300 Subject: [PATCH] MT#55391 Add NODE_PATH variable to Dockerfile It's needed after upgrade of nodejs to v18. Add python3 as otherwise the built-in 'multiprocessing' module is not there (required by gyp build). Add missing 'make' and 'g++'. Change-Id: I2afab2e5b150919542ecd597202dc5324c2a40f1 --- t/Dockerfile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/t/Dockerfile b/t/Dockerfile index 12246a11..6140a606 100644 --- a/t/Dockerfile +++ b/t/Dockerfile @@ -5,7 +5,9 @@ FROM docker.mgm.sipwise.com/sipwise-bullseye:latest # is updated with the current date. It will force refresh of all # of the base images and things like `apt-get update` won't be using # old cached versions when the Dockerfile is built. -ENV REFRESHED_AT 2021-09-27 +ENV REFRESHED_AT 2022-10-04 + +ENV NODE_PATH=/usr/lib/nodejs:/usr/share/nodejs ENV DEBIAN_FRONTEND noninteractive ENV DISPLAY=:0 @@ -14,7 +16,10 @@ COPY t/sources.list.d/builddeps.list /etc/apt/sources.list.d/ COPY t/sources.list.d/preferences /etc/apt/preferences.d/ RUN apt-get update && apt-get install --assume-yes --no-install-recommends \ + g++ \ + make \ nodejs \ + python3 \ yarnpkg RUN echo "cd /code && ./t/testrunner" >/root/.bash_history