aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2021-12-24 13:52:32 +0100
committerChocobozzz <me@florianbigard.com>2021-12-24 13:52:32 +0100
commit4ff75a3b2c48b2b0a1250cb551d2b73eb26d5296 (patch)
tree5341c35344a167dd51e29f5419ac7a26dcc735e7
parent5a637488778055906dbacdca735565b2f46f0cf7 (diff)
downloadPeerTube-4ff75a3b2c48b2b0a1250cb551d2b73eb26d5296.tar.gz
PeerTube-4ff75a3b2c48b2b0a1250cb551d2b73eb26d5296.tar.zst
PeerTube-4ff75a3b2c48b2b0a1250cb551d2b73eb26d5296.zip
Deprecate node 12
-rw-r--r--.github/workflows/benchmark.yml2
-rw-r--r--.github/workflows/test.yml2
-rw-r--r--server/initializers/checker-before-init.ts4
-rw-r--r--support/doc/dependencies.md14
-rw-r--r--support/docker/production/Dockerfile.bullseye2
5 files changed, 14 insertions, 10 deletions
diff --git a/.github/workflows/benchmark.yml b/.github/workflows/benchmark.yml
index 7e8259d27..8811f0f45 100644
--- a/.github/workflows/benchmark.yml
+++ b/.github/workflows/benchmark.yml
@@ -35,7 +35,7 @@ jobs:
35 35
36 - uses: './.github/actions/reusable-prepare-peertube-build' 36 - uses: './.github/actions/reusable-prepare-peertube-build'
37 with: 37 with:
38 node-version: '12.x' 38 node-version: '14.x'
39 39
40 - uses: './.github/actions/reusable-prepare-peertube-run' 40 - uses: './.github/actions/reusable-prepare-peertube-run'
41 41
diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml
index 030ec3790..18cf60a0a 100644
--- a/.github/workflows/test.yml
+++ b/.github/workflows/test.yml
@@ -52,7 +52,7 @@ jobs:
52 52
53 - uses: './.github/actions/reusable-prepare-peertube-build' 53 - uses: './.github/actions/reusable-prepare-peertube-build'
54 with: 54 with:
55 node-version: '12.x' 55 node-version: '14.x'
56 56
57 - uses: './.github/actions/reusable-prepare-peertube-run' 57 - uses: './.github/actions/reusable-prepare-peertube-run'
58 58
diff --git a/server/initializers/checker-before-init.ts b/server/initializers/checker-before-init.ts
index d2f3bb128..458005b98 100644
--- a/server/initializers/checker-before-init.ts
+++ b/server/initializers/checker-before-init.ts
@@ -119,6 +119,10 @@ function checkNodeVersion () {
119 if (major <= 10) { 119 if (major <= 10) {
120 throw new Error('Your NodeJS version ' + v + ' is not supported. Please upgrade.') 120 throw new Error('Your NodeJS version ' + v + ' is not supported. Please upgrade.')
121 } 121 }
122
123 if (major <= 12) {
124 logger.warn('Your NodeJS version ' + v + ' is deprecated. Please upgrade.')
125 }
122} 126}
123 127
124// --------------------------------------------------------------------------- 128// ---------------------------------------------------------------------------
diff --git a/support/doc/dependencies.md b/support/doc/dependencies.md
index 711fd2d7f..61b0fc6bc 100644
--- a/support/doc/dependencies.md
+++ b/support/doc/dependencies.md
@@ -77,7 +77,7 @@ sudo systemctl start redis postgresql
771. Run: 771. Run:
78 78
79``` 79```
80sudo pacman -S nodejs-lts-fermium yarn ffmpeg postgresql openssl redis git wget unzip python base-devel npm nginx 80sudo pacman -S nodejs-lts-fermium yarn ffmpeg postgresql openssl redis git wget unzip python base-devel npm nginx
81``` 81```
82 82
83Now that dependencies are installed, before running PeerTube you should start PostgreSQL and Redis: 83Now that dependencies are installed, before running PeerTube you should start PostgreSQL and Redis:
@@ -88,7 +88,7 @@ sudo systemctl start redis postgresql
88 88
89## CentOS 7 89## CentOS 7
90 90
911. Install NodeJS 12.x: 911. Install NodeJS 14.x:
92[https://nodejs.org/en/download/package-manager/#enterprise-linux-and-fedora](https://nodejs.org/en/download/package-manager/#enterprise-linux-and-fedora) 92[https://nodejs.org/en/download/package-manager/#enterprise-linux-and-fedora](https://nodejs.org/en/download/package-manager/#enterprise-linux-and-fedora)
93 93
942. Install yarn: 942. Install yarn:
@@ -135,7 +135,7 @@ sudo systemctl enable --now postgresql
135 135
136## Centos 8 136## Centos 8
137 137
1381. Install NodeJS 12.x: 1381. Install NodeJS 14.x:
139[https://nodejs.org/en/download/package-manager/#enterprise-linux-and-fedora](https://nodejs.org/en/download/package-manager/#enterprise-linux-and-fedora) 139[https://nodejs.org/en/download/package-manager/#enterprise-linux-and-fedora](https://nodejs.org/en/download/package-manager/#enterprise-linux-and-fedora)
140 140
1412. Install yarn: 1412. Install yarn:
@@ -180,9 +180,9 @@ sudo systemctl enable --now postgresql
180sudo dnf update -y 180sudo dnf update -y
181``` 181```
182 182
1832. Install NodeJS 12.x (or 14): 1832. Install NodeJS 14.x:
184``` 184```
185sudo dnf module install -y nodejs:12 185sudo dnf module install -y nodejs:14
186``` 186```
187 187
1883. Install yarn: 1883. Install yarn:
@@ -239,7 +239,7 @@ su my-peertube-user
2393. (Optional) Install certbot (choose instructions for your distribution): 2393. (Optional) Install certbot (choose instructions for your distribution):
240[https://certbot.eff.org/all-instructions](https://certbot.eff.org/all-instructions) 240[https://certbot.eff.org/all-instructions](https://certbot.eff.org/all-instructions)
241 241
2424. Install NodeJS 12.x: 2424. Install NodeJS 14.x:
243[https://nodejs.org/en/download/package-manager/#enterprise-linux-and-fedora](https://nodejs.org/en/download/package-manager/#enterprise-linux-and-fedora) 243[https://nodejs.org/en/download/package-manager/#enterprise-linux-and-fedora](https://nodejs.org/en/download/package-manager/#enterprise-linux-and-fedora)
244 244
2455. Install yarn: 2455. Install yarn:
@@ -331,7 +331,7 @@ echo fs.inotify.max_user_watches=582222 | sudo tee -a /etc/sysctl.conf && sudo s
3312. Install Node.JS 3312. Install Node.JS
332 332
333``` 333```
334sudo dnf module install nodejs:12 334sudo dnf module install nodejs:14
335``` 335```
336 336
3373. Install Yarn 3373. Install Yarn
diff --git a/support/docker/production/Dockerfile.bullseye b/support/docker/production/Dockerfile.bullseye
index ec06d6b1d..262fc427a 100644
--- a/support/docker/production/Dockerfile.bullseye
+++ b/support/docker/production/Dockerfile.bullseye
@@ -1,4 +1,4 @@
1FROM node:12-bullseye-slim 1FROM node:14-bullseye-slim
2 2
3# Allow to pass extra options to the npm run build 3# Allow to pass extra options to the npm run build
4# eg: --light --light-fr to not build all client languages 4# eg: --light --light-fr to not build all client languages