diff --git a/.github/workflows/build_project.yml b/.github/workflows/build_project.yml index 15d23a6..b549261 100644 --- a/.github/workflows/build_project.yml +++ b/.github/workflows/build_project.yml @@ -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 diff --git a/.github/workflows/format_project.yml b/.github/workflows/format_project.yml index 85dbf48..4d4c732 100644 --- a/.github/workflows/format_project.yml +++ b/.github/workflows/format_project.yml @@ -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 diff --git a/.github/workflows/lint_project.yml b/.github/workflows/lint_project.yml index 5dac414..25ec9d9 100644 --- a/.github/workflows/lint_project.yml +++ b/.github/workflows/lint_project.yml @@ -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 diff --git a/.github/workflows/publish_edge.yml b/.github/workflows/publish_edge.yml index 7ce6588..38bd30b 100644 --- a/.github/workflows/publish_edge.yml +++ b/.github/workflows/publish_edge.yml @@ -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 diff --git a/.github/workflows/publish_release.yml b/.github/workflows/publish_release.yml index 490d071..37e74e4 100644 --- a/.github/workflows/publish_release.yml +++ b/.github/workflows/publish_release.yml @@ -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 diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 425f869..3e3801b 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -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 diff --git a/dockerfile-captain.debug b/dockerfile-captain.debug index c70e664..e4af0ab 100644 --- a/dockerfile-captain.debug +++ b/dockerfile-captain.debug @@ -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 diff --git a/dockerfile-captain.dev b/dockerfile-captain.dev index a69964e..b70f1d8 100644 --- a/dockerfile-captain.dev +++ b/dockerfile-captain.dev @@ -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 diff --git a/dockerfile-captain.edge b/dockerfile-captain.edge index 40b6678..f53e8bb 100644 --- a/dockerfile-captain.edge +++ b/dockerfile-captain.edge @@ -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 diff --git a/dockerfile-captain.release b/dockerfile-captain.release index 873d06d..778140b 100644 --- a/dockerfile-captain.release +++ b/dockerfile-captain.release @@ -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