Skip to content

Commit 5bd3d3c

Browse files
[8.x](backport #7583) [Synthetics] Upgrade node to latest LTS 18.20.7 (#7597)
* [Synthetics] Upgrade node to latest LTS 18.20.7 (#7583) * Upgrade node to latest LTS 18.20.7 (cherry picked from commit 5cff614) # Conflicts: # dev-tools/packaging/templates/docker/Dockerfile.elastic-agent.tmpl * Resolve conflicts --------- Co-authored-by: Emilio Alvarez Piñeiro <[email protected]> Co-authored-by: emilioalvap <[email protected]>
1 parent 32d3ac0 commit 5bd3d3c

File tree

2 files changed

+35
-3
lines changed

2 files changed

+35
-3
lines changed
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# Kind can be one of:
2+
# - breaking-change: a change to previously-documented behavior
3+
# - deprecation: functionality that is being removed in a later release
4+
# - bug-fix: fixes a problem in a previous version
5+
# - enhancement: extends functionality but does not break or fix existing behavior
6+
# - feature: new functionality
7+
# - known-issue: problems that we are aware of in a given version
8+
# - security: impacts on the security of a product or a user’s deployment.
9+
# - upgrade: important information for someone upgrading from a prior version
10+
# - other: does not fit into any of the other categories
11+
kind: other
12+
13+
# Change summary; a 80ish characters long description of the change.
14+
summary: Upgrade NodeJS to LTS 18.20.7
15+
16+
# Long description; in case the summary is not enough to describe the change
17+
# this field accommodate a description without length limits.
18+
# NOTE: This field will be rendered only for breaking-change and known-issue kinds at the moment.
19+
#description:
20+
21+
# Affected component; usually one of "elastic-agent", "fleet-server", "filebeat", "metricbeat", "auditbeat", "all", etc.
22+
component: "heartbeat"
23+
24+
# PR URL; optional; the PR number that added the changeset.
25+
# If not present is automatically filled by the tooling finding the PR where this changelog fragment has been added.
26+
# NOTE: the tooling supports backports, so it's able to fill the original PR number instead of the backport PR number.
27+
# Please provide it if you are adding a fragment for a different PR.
28+
pr: https://github.com/elastic/elastic-agent/pull/7583
29+
30+
# Issue URL; optional; the GitHub issue related to this changeset (either closes or is part of).
31+
# If not present is automatically filled by the tooling with the issue linked to the PR number.
32+
#issue: https://github.com/owner/repo/1234

dev-tools/packaging/templates/docker/Dockerfile.elastic-agent.tmpl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ RUN echo \
208208
ENV ELASTIC_SYNTHETICS_CAPABLE=true
209209
ENV ELASTIC_AGENT_COMPLETE=true
210210
ENV TZ=UTC
211-
ENV NODE_VERSION=18.20.6
211+
ENV NODE_VERSION=18.20.7
212212
ENV PATH="$NODE_PATH/node/bin:$PATH"
213213
# Install the latest version of @elastic/synthetics forcefully ignoring the previously
214214
# cached node_modules, heartbeat then calls the global executable to run test suites
@@ -259,8 +259,8 @@ RUN for iter in {1..10}; do \
259259
USER root
260260
# Install required dependencies from wolfi repository
261261
RUN for iter in {1..10}; do \
262-
apk update && \
263-
apk add --no-interactive --no-progress --no-cache nodejs-18=18.20.6-r0 npm=11.1.0-r0 glib dbus-glib libatk-1.0 \
262+
apk fix && \
263+
apk add --no-interactive --no-progress --no-cache nodejs-18=18.20.7-r0 npm=10.9.2-r0 glib dbus-glib libatk-1.0 \
264264
libatk-bridge-2.0 cups-libs libxcomposite libxdamage libxrandr libxkbcommon pango alsa-lib \
265265
font-opensans fontconfig gtk icu-data-full libnss mesa font-noto-cjk font-noto-emoji && \
266266
exit_code=0 && break || exit_code=$? && echo "apk error: retry $iter in 10s" && sleep 10; \

0 commit comments

Comments
 (0)