Skip to content

Commit

Permalink
Upgrade node version and alpine docker image (gardener#1242)
Browse files Browse the repository at this point in the history
* upgrade node image

* Remove leading zero in nodejs version
  • Loading branch information
holgerkoser authored Jun 28, 2022
1 parent 86190b0 commit 9aa24de
Show file tree
Hide file tree
Showing 12 changed files with 20 additions and 20 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# SPDX-License-Identifier: Apache-2.0

#### Builder ####
FROM node:16-alpine3.15 as builder
FROM node:18-alpine3.16 as builder

WORKDIR /usr/src/app

Expand Down Expand Up @@ -47,7 +47,7 @@ RUN cp -r frontend/dist /usr/src/build/public \
&& find /usr/src/build/.yarn -mindepth 1 -name cache -prune -o -exec rm -rf {} +

#### Release ####
FROM alpine:3.15 as release
FROM alpine:3.16 as release

RUN addgroup -g 1000 node && adduser -u 1000 -G node -s /bin/sh -D node
RUN apk add --no-cache tini libstdc++
Expand Down
2 changes: 1 addition & 1 deletion backend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,6 @@
},
"packageManager": "[email protected]",
"engines": {
"node": "^16.15.0"
"node": "^18.4.0"
}
}
16 changes: 8 additions & 8 deletions backend/test/docker.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,17 +19,17 @@ const client = extend({

/* Nodejs release schedule (see https://nodejs.org/en/about/releases/) */
const activeNodeReleases = {
12: {
endOfLife: new Date('2022-04-01T23:59:59Z')
16: {
endOfLife: new Date('2023-09-11T23:59:59Z')
},
14: {
endOfLife: new Date('2023-04-01T23:59:59Z')
18: {
endOfLife: new Date('2025-04-30T23:59:59Z')
},
15: {
endOfLife: new Date('2021-06-01T23:59:59Z')
19: {
endOfLife: new Date('2023-06-01T23:59:59Z')
},
16: {
endOfLife: new Date('2024-04-30T23:59:59Z')
20: {
endOfLife: new Date('2026-04-30T23:59:59Z')
}
}

Expand Down
2 changes: 1 addition & 1 deletion charts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,6 @@
},
"packageManager": "[email protected]",
"engines": {
"node": "^16.15.0"
"node": "^18.4.0"
}
}
2 changes: 1 addition & 1 deletion constraints.pro
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ gen_enforced_dependency(WorkspaceCwd, DependencyIdent, 'workspace:*', Dependency
gen_enforced_field(WorkspaceCwd, 'license', 'Apache-2.0').

% This rule will enforce that all packages must have certain engines fields
gen_enforced_field(WorkspaceCwd, 'engines.node', '^16.15.0').
gen_enforced_field(WorkspaceCwd, 'engines.node', '^18.4.0').
gen_enforced_field(WorkspaceCwd, 'packageManager', '[email protected]').

% Required to make the package work with the GitHub Package Registry
Expand Down
2 changes: 1 addition & 1 deletion frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,6 @@
},
"packageManager": "[email protected]",
"engines": {
"node": "^16.15.0"
"node": "^18.4.0"
}
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,6 @@
},
"packageManager": "[email protected]",
"engines": {
"node": "^16.15.0"
"node": "^18.4.0"
}
}
2 changes: 1 addition & 1 deletion packages/kube-client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,6 @@
},
"packageManager": "[email protected]",
"engines": {
"node": "^16.15.0"
"node": "^18.4.0"
}
}
2 changes: 1 addition & 1 deletion packages/kube-config/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,6 @@
},
"packageManager": "[email protected]",
"engines": {
"node": "^16.15.0"
"node": "^18.4.0"
}
}
2 changes: 1 addition & 1 deletion packages/logger/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,6 @@
},
"packageManager": "[email protected]",
"engines": {
"node": "^16.15.0"
"node": "^18.4.0"
}
}
2 changes: 1 addition & 1 deletion packages/request/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,6 @@
},
"packageManager": "[email protected]",
"engines": {
"node": "^16.15.0"
"node": "^18.4.0"
}
}
2 changes: 1 addition & 1 deletion packages/test-utils/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,6 @@
},
"packageManager": "[email protected]",
"engines": {
"node": "^16.15.0"
"node": "^18.4.0"
}
}

0 comments on commit 9aa24de

Please sign in to comment.