File tree Expand file tree Collapse file tree 1 file changed +14
-1
lines changed Expand file tree Collapse file tree 1 file changed +14
-1
lines changed Original file line number Diff line number Diff line change @@ -12,6 +12,10 @@ RUN mkdir /gp-code \
12
12
&& git fetch origin $CODE_COMMIT --depth=1 \
13
13
&& git reset --hard FETCH_HEAD
14
14
WORKDIR /gp-code
15
+
16
+ # Disable v8 cache used by yarn v1.x, refs https://github.com/nodejs/node/issues/51555
17
+ ENV DISABLE_V8_COMPILE_CACHE=1
18
+
15
19
RUN yarn --cwd remote --frozen-lockfile --network-timeout 180000
16
20
17
21
FROM gitpod/openvscode-server-linux-build-agent:focal-x64 as code_builder
@@ -27,7 +31,13 @@ ARG CODE_VERSION
27
31
28
32
RUN sudo mkdir -m 0755 -p /etc/apt/keyrings
29
33
RUN curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | sudo gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg
30
- RUN echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_18.x nodistro main" | sudo tee /etc/apt/sources.list.d/nodesource.list
34
+
35
+ RUN if dpkg --compare-versions "$CODE_VERSION" "ge" "1.90" ; then \
36
+ NODE_VERSION=20; \
37
+ else \
38
+ NODE_VERSION=18; \
39
+ fi && \
40
+ echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_$NODE_VERSION.x nodistro main" | sudo tee /etc/apt/sources.list.d/nodesource.list
31
41
RUN apt-get update && apt-get install -y nodejs
32
42
33
43
RUN mkdir /gp-code \
@@ -46,6 +56,9 @@ RUN apt-get install -y pkg-config dbus xvfb libgtk-3-0 libxkbfile-dev libkrb5-de
46
56
# Start dbus session
47
57
&& mkdir -p /var/run/dbus
48
58
59
+ # Disable v8 cache used by yarn v1.x, refs https://github.com/nodejs/node/issues/51555
60
+ ENV DISABLE_V8_COMPILE_CACHE=1
61
+
49
62
ENV npm_config_arch=x64
50
63
RUN mkdir -p .build \
51
64
&& yarn config set registry "$NPM_REGISTRY" \
You can’t perform that action at this time.
0 commit comments