Deprecate node 12
This commit is contained in:
parent
5a63748877
commit
4ff75a3b2c
|
@ -35,7 +35,7 @@ jobs:
|
||||||
|
|
||||||
- uses: './.github/actions/reusable-prepare-peertube-build'
|
- uses: './.github/actions/reusable-prepare-peertube-build'
|
||||||
with:
|
with:
|
||||||
node-version: '12.x'
|
node-version: '14.x'
|
||||||
|
|
||||||
- uses: './.github/actions/reusable-prepare-peertube-run'
|
- uses: './.github/actions/reusable-prepare-peertube-run'
|
||||||
|
|
||||||
|
|
|
@ -52,7 +52,7 @@ jobs:
|
||||||
|
|
||||||
- uses: './.github/actions/reusable-prepare-peertube-build'
|
- uses: './.github/actions/reusable-prepare-peertube-build'
|
||||||
with:
|
with:
|
||||||
node-version: '12.x'
|
node-version: '14.x'
|
||||||
|
|
||||||
- uses: './.github/actions/reusable-prepare-peertube-run'
|
- uses: './.github/actions/reusable-prepare-peertube-run'
|
||||||
|
|
||||||
|
|
|
@ -119,6 +119,10 @@ function checkNodeVersion () {
|
||||||
if (major <= 10) {
|
if (major <= 10) {
|
||||||
throw new Error('Your NodeJS version ' + v + ' is not supported. Please upgrade.')
|
throw new Error('Your NodeJS version ' + v + ' is not supported. Please upgrade.')
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (major <= 12) {
|
||||||
|
logger.warn('Your NodeJS version ' + v + ' is deprecated. Please upgrade.')
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// ---------------------------------------------------------------------------
|
// ---------------------------------------------------------------------------
|
||||||
|
|
|
@ -77,7 +77,7 @@ sudo systemctl start redis postgresql
|
||||||
1. Run:
|
1. Run:
|
||||||
|
|
||||||
```
|
```
|
||||||
sudo pacman -S nodejs-lts-fermium yarn ffmpeg postgresql openssl redis git wget unzip python base-devel npm nginx
|
sudo pacman -S nodejs-lts-fermium yarn ffmpeg postgresql openssl redis git wget unzip python base-devel npm nginx
|
||||||
```
|
```
|
||||||
|
|
||||||
Now that dependencies are installed, before running PeerTube you should start PostgreSQL and Redis:
|
Now that dependencies are installed, before running PeerTube you should start PostgreSQL and Redis:
|
||||||
|
@ -88,7 +88,7 @@ sudo systemctl start redis postgresql
|
||||||
|
|
||||||
## CentOS 7
|
## CentOS 7
|
||||||
|
|
||||||
1. Install NodeJS 12.x:
|
1. Install NodeJS 14.x:
|
||||||
[https://nodejs.org/en/download/package-manager/#enterprise-linux-and-fedora](https://nodejs.org/en/download/package-manager/#enterprise-linux-and-fedora)
|
[https://nodejs.org/en/download/package-manager/#enterprise-linux-and-fedora](https://nodejs.org/en/download/package-manager/#enterprise-linux-and-fedora)
|
||||||
|
|
||||||
2. Install yarn:
|
2. Install yarn:
|
||||||
|
@ -135,7 +135,7 @@ sudo systemctl enable --now postgresql
|
||||||
|
|
||||||
## Centos 8
|
## Centos 8
|
||||||
|
|
||||||
1. Install NodeJS 12.x:
|
1. Install NodeJS 14.x:
|
||||||
[https://nodejs.org/en/download/package-manager/#enterprise-linux-and-fedora](https://nodejs.org/en/download/package-manager/#enterprise-linux-and-fedora)
|
[https://nodejs.org/en/download/package-manager/#enterprise-linux-and-fedora](https://nodejs.org/en/download/package-manager/#enterprise-linux-and-fedora)
|
||||||
|
|
||||||
2. Install yarn:
|
2. Install yarn:
|
||||||
|
@ -180,9 +180,9 @@ sudo systemctl enable --now postgresql
|
||||||
sudo dnf update -y
|
sudo dnf update -y
|
||||||
```
|
```
|
||||||
|
|
||||||
2. Install NodeJS 12.x (or 14):
|
2. Install NodeJS 14.x:
|
||||||
```
|
```
|
||||||
sudo dnf module install -y nodejs:12
|
sudo dnf module install -y nodejs:14
|
||||||
```
|
```
|
||||||
|
|
||||||
3. Install yarn:
|
3. Install yarn:
|
||||||
|
@ -239,7 +239,7 @@ su my-peertube-user
|
||||||
3. (Optional) Install certbot (choose instructions for your distribution):
|
3. (Optional) Install certbot (choose instructions for your distribution):
|
||||||
[https://certbot.eff.org/all-instructions](https://certbot.eff.org/all-instructions)
|
[https://certbot.eff.org/all-instructions](https://certbot.eff.org/all-instructions)
|
||||||
|
|
||||||
4. Install NodeJS 12.x:
|
4. Install NodeJS 14.x:
|
||||||
[https://nodejs.org/en/download/package-manager/#enterprise-linux-and-fedora](https://nodejs.org/en/download/package-manager/#enterprise-linux-and-fedora)
|
[https://nodejs.org/en/download/package-manager/#enterprise-linux-and-fedora](https://nodejs.org/en/download/package-manager/#enterprise-linux-and-fedora)
|
||||||
|
|
||||||
5. Install yarn:
|
5. Install yarn:
|
||||||
|
@ -331,7 +331,7 @@ echo fs.inotify.max_user_watches=582222 | sudo tee -a /etc/sysctl.conf && sudo s
|
||||||
2. Install Node.JS
|
2. Install Node.JS
|
||||||
|
|
||||||
```
|
```
|
||||||
sudo dnf module install nodejs:12
|
sudo dnf module install nodejs:14
|
||||||
```
|
```
|
||||||
|
|
||||||
3. Install Yarn
|
3. Install Yarn
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
FROM node:12-bullseye-slim
|
FROM node:14-bullseye-slim
|
||||||
|
|
||||||
# Allow to pass extra options to the npm run build
|
# Allow to pass extra options to the npm run build
|
||||||
# eg: --light --light-fr to not build all client languages
|
# eg: --light --light-fr to not build all client languages
|
||||||
|
|
Loading…
Reference in New Issue