Updated to node 22
Some checks failed
Run build / build (push) Has been cancelled
Run formatter / check-code-formatting (push) Has been cancelled
Run lint / run-lint (push) Has been cancelled
Build and push the edge image / run-pre-checks (push) Has been cancelled
Build and push the edge image / build-publish-docker-hub (push) Has been cancelled

This commit is contained in:
Kasra Bigdeli
2025-06-22 18:46:47 -07:00
parent f56f3366a3
commit 683f353533
10 changed files with 29 additions and 35 deletions

View File

@@ -15,7 +15,7 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18
node-version: 22
- run: |
sudo bash -c "mkdir /captain && chown -R `whoami` /captain"
npm ci

View File

@@ -15,5 +15,5 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18
node-version: 22
- run: npm ci && npm run formatter

View File

@@ -15,5 +15,5 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18
node-version: 22
- run: npm ci && npm run lint

View File

@@ -12,7 +12,7 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18
node-version: 22
- run: |
sudo bash -c "mkdir /captain && chown -R `whoami` /captain"
npm ci

View File

@@ -12,7 +12,7 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18
node-version: 22
- run: |
sudo bash -c "mkdir /captain && chown -R `whoami` /captain"
npm ci

View File

@@ -64,7 +64,7 @@ Link this folder to the root folder (Apple does not allow to create folder on th
#####
use node 18 then
use node 22 then
```bash
$ npm install
@@ -75,12 +75,12 @@ $ ./dev-scripts/dev-clean-run-as-dev-macos-step-2.sh
The main differences between the release and debug mode are:
- docker image is created from the local source file, instead of getting pulled from Docker hub
- security is much weaker is debug due to a static salt
- self health monitoring is disabled in debug so that we can see possible crashes
- same origin policy is disabled in debug mode to make front end development easier
- an additional endpoint is available at `/force-exit` which force restarts the backend service
- static resources (including front end app) are not being served in debug build.
- docker image is created from the local source file, instead of getting pulled from Docker hub
- security is much weaker is debug due to a static salt
- self health monitoring is disabled in debug so that we can see possible crashes
- same origin policy is disabled in debug mode to make front end development easier
- an additional endpoint is available at `/force-exit` which force restarts the backend service
- static resources (including front end app) are not being served in debug build.
Captain by default uses `captain.localhost` as its root domain. It's not always needed, but if you need a root
domain for your development, you can simply run a local DNS server on your local machine and point
@@ -128,22 +128,22 @@ orientation.
Examples of behavior that contributes to creating a positive environment
include:
- Using welcoming and inclusive language
- Being respectful of differing viewpoints and experiences
- Gracefully accepting constructive criticism
- Focusing on what is best for the community
- Showing empathy towards other community members
- Using welcoming and inclusive language
- Being respectful of differing viewpoints and experiences
- Gracefully accepting constructive criticism
- Focusing on what is best for the community
- Showing empathy towards other community members
Examples of unacceptable behavior by participants include:
- The use of sexualized language or imagery and unwelcome sexual attention or
advances
- Trolling, insulting/derogatory comments, and personal or political attacks
- Public or private harassment
- Publishing others' private information, such as a physical or electronic
address, without explicit permission
- Other conduct which could reasonably be considered inappropriate in a
professional setting
- The use of sexualized language or imagery and unwelcome sexual attention or
advances
- Trolling, insulting/derogatory comments, and personal or political attacks
- Public or private harassment
- Publishing others' private information, such as a physical or electronic
address, without explicit permission
- Other conduct which could reasonably be considered inappropriate in a
professional setting
### Our Responsibilities

View File

@@ -1,4 +1,4 @@
FROM node:18
FROM node:22
RUN apt-get update && apt-get full-upgrade -yqq && apt-get install build-essential cmake -yqq
RUN apt-get -y install netcat-traditional socat

View File

@@ -1,4 +1,4 @@
FROM node:18-alpine
FROM node:22-alpine
RUN apk update && apk upgrade --no-cache && apk add --update --no-cache make gcc g++ git curl openssl openssh
RUN mkdir -p /usr/src/app

View File

@@ -1,7 +1,4 @@
# NodeJS v20 freezes when building for multiarch
# https://github.com/nodejs/docker-node/issues/2155
FROM node:18-alpine
FROM node:22-alpine
RUN apk add --update --no-cache make gcc g++ git curl openssl openssh
WORKDIR /usr/src/app

View File

@@ -1,7 +1,4 @@
# NodeJS v20 freezes when building for multiarch
# https://github.com/nodejs/docker-node/issues/2155
FROM node:18-alpine
FROM node:22-alpine
RUN apk add --update --no-cache make gcc g++ git curl openssl openssh
WORKDIR /usr/src/app