diff --git a/.nvmrc b/.nvmrc index d8ff873d1a..55bffd620b 100644 --- a/.nvmrc +++ b/.nvmrc @@ -1 +1 @@ -12.22.7 +18.15.0 diff --git a/SETUP.md b/SETUP.md index 26c3d923c6..5c2776888a 100644 --- a/SETUP.md +++ b/SETUP.md @@ -42,7 +42,7 @@ Once you have go installed run the following to install gobind #### Install Node -Currently Node.js v12.x is required in order to work with this repo. +Currently Node.js v18.x is required in order to work with this repo. Install `nvm` (allows you to manage multiple versions of Node) by following the [instructions here](https://github.com/nvm-sh/nvm). @@ -50,8 +50,8 @@ Once `nvm` is successfully installed, restart the terminal and run the following ```bash # restart the terminal after installing nvm -nvm install 12 -nvm alias default 12 +nvm install 18 +nvm alias default 18 ``` ### MacOS @@ -114,8 +114,8 @@ source ~/.bashrc With Rust binaries in your PATH you should be able to run: ```bash -rustup install 1.42.0 -rustup default 1.42.0 +rustup install 1.68.2 +rustup default 1.68.2 ``` If you're building Geth for Android, you need a NDK that has a cross-compilation toolchain. We need version 19. diff --git a/dockerfiles/celotool/Dockerfile b/dockerfiles/celotool/Dockerfile index 57d53a9c66..4331d50514 100644 --- a/dockerfiles/celotool/Dockerfile +++ b/dockerfiles/celotool/Dockerfile @@ -1,4 +1,4 @@ -FROM node:12 +FROM node:18 WORKDIR /celo-monorepo # Needed for gsutil @@ -63,9 +63,8 @@ RUN yarn build ENV PATH="/celo-monorepo/packages/celotool/bin:${PATH}" -COPY --from=golang:1.16-stretch /usr/local/go/ /usr/local/go/ +COPY --from=golang:1.19-stretch /usr/local/go/ /usr/local/go/ ENV PATH="/usr/local/go/bin:${PATH}" CMD ["celotooljs.sh"] - diff --git a/dockerfiles/circleci/Dockerfile b/dockerfiles/circleci/Dockerfile index fbc00feea9..2419627010 100644 --- a/dockerfiles/circleci/Dockerfile +++ b/dockerfiles/circleci/Dockerfile @@ -1,4 +1,4 @@ -FROM circleci/node:10 +FROM circleci/node:18 MAINTAINER Connor McEwen RUN sudo apt-get update -y @@ -16,8 +16,8 @@ RUN export CLOUD_SDK_REPO="cloud-sdk-$(lsb_release -c -s)" && \ curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo apt-key add - && \ sudo apt-get update -y && sudo apt-get install google-cloud-sdk -y -RUN sudo wget https://dl.google.com/go/go1.13.5.linux-amd64.tar.gz && \ - sudo tar xf go1.13.5.linux-amd64.tar.gz -C /usr/local +RUN sudo wget https://dl.google.com/go/go1.19.7.linux-amd64.tar.gz && \ + sudo tar xf go1.19.7.linux-amd64.tar.gz -C /usr/local RUN curl https://sh.rustup.rs -sSf | sh -s -- -y @@ -25,8 +25,8 @@ ENV PATH="/usr/local/go/bin:/home/circleci/.cargo/bin:${PATH}" RUN go version -RUN rustup install 1.41.0 && \ - rustup default 1.41.0 +RUN rustup install 1.68.2 && \ + rustup default 1.68.2 RUN mkdir ~/.ssh/ && echo -e "Host github.com\n\tStrictHostKeyChecking no\n" > ~/.ssh/config diff --git a/dockerfiles/cli-standalone/Dockerfile b/dockerfiles/cli-standalone/Dockerfile index 6f3b015c4d..fbd9cac69c 100644 --- a/dockerfiles/cli-standalone/Dockerfile +++ b/dockerfiles/cli-standalone/Dockerfile @@ -3,7 +3,7 @@ # Example build command: # # VERSION=x.y.z; docker build . --build-arg VERSION=$VERSION -t gcr.io/celo-testnet/celocli-standalone:$VERSION -FROM node:10-alpine +FROM node:18-alpine # Install cli install dependencies. RUN apk add --no-cache python git make gcc g++ bash libusb-dev linux-headers eudev-dev diff --git a/dockerfiles/cli/Dockerfile b/dockerfiles/cli/Dockerfile index dd201f7a19..e7e53f56e1 100644 --- a/dockerfiles/cli/Dockerfile +++ b/dockerfiles/cli/Dockerfile @@ -34,7 +34,7 @@ ADD https://www.googleapis.com/storage/v1/b/genesis_blocks/o/${celo_env}?alt=med ADD https://www.googleapis.com/storage/v1/b/static_nodes/o/${celo_env}?alt=media /celo/static-nodes.json # Build Celocli -FROM node:10-alpine as node +FROM node:18-alpine as node ARG celo_env @@ -46,7 +46,7 @@ WORKDIR /celo-monorepo/ RUN npm install @celo/celocli # Build the combined image -FROM node:10-alpine as final_image +FROM node:18-alpine as final_image ARG network_name="alfajores" ARG network_id="44787" diff --git a/dockerfiles/cloudbuild/Dockerfile b/dockerfiles/cloudbuild/Dockerfile index 92a638ded1..b892b9042d 100644 --- a/dockerfiles/cloudbuild/Dockerfile +++ b/dockerfiles/cloudbuild/Dockerfile @@ -1,4 +1,4 @@ -FROM node:12 +FROM node:18 RUN apt-get update -y RUN apt-get install lsb-release libudev-dev libusb-dev -y --no-install-recommends apt-utils diff --git a/dockerfiles/leaderboard/Dockerfile b/dockerfiles/leaderboard/Dockerfile index e862488fc6..5a8487bde7 100644 --- a/dockerfiles/leaderboard/Dockerfile +++ b/dockerfiles/leaderboard/Dockerfile @@ -1,4 +1,4 @@ -FROM node:12 +FROM node:18 WORKDIR /celo-monorepo # ensure yarn.lock is evaluated by kaniko cache diff diff --git a/dockerfiles/metadata-crawler/Dockerfile b/dockerfiles/metadata-crawler/Dockerfile index 79f4f5be5f..0724dd26f8 100644 --- a/dockerfiles/metadata-crawler/Dockerfile +++ b/dockerfiles/metadata-crawler/Dockerfile @@ -1,4 +1,4 @@ -FROM node:12 +FROM node:18 WORKDIR /celo-monorepo RUN apt-get update && \ diff --git a/dockerfiles/phone-number-privacy/Dockerfile b/dockerfiles/phone-number-privacy/Dockerfile index 01d7a37f97..92fae5ba24 100644 --- a/dockerfiles/phone-number-privacy/Dockerfile +++ b/dockerfiles/phone-number-privacy/Dockerfile @@ -24,7 +24,7 @@ COPY packages/sdk/wallets/wallet-local packages/sdk/wallets/wallet-local COPY packages/sdk/wallets/wallet-remote packages/sdk/wallets/wallet-remote ##### Main stage -FROM node:12 +FROM node:18 WORKDIR /celo-phone-number-privacy/ diff --git a/packages/cli/README.md b/packages/cli/README.md index 06c6423b90..07523054f1 100644 --- a/packages/cli/README.md +++ b/packages/cli/README.md @@ -4,7 +4,7 @@ Tool for interacting with the Celo Protocol. ## Installation -We are currently deploying the CLI with only Node.js v12.x support. +We are currently deploying the CLI with only Node.js v18.x support. To install globally, run: diff --git a/packages/docs/command-line-interface/introduction.md b/packages/docs/command-line-interface/introduction.md index ff54a6b59c..7181554f6e 100644 --- a/packages/docs/command-line-interface/introduction.md +++ b/packages/docs/command-line-interface/introduction.md @@ -21,7 +21,7 @@ npm install -g @celo/celocli ``` {% hint style="info" %} -We are currently deploying the CLI with only Node.js v12.x. If you are running a different version of Node.js, consider using [NVM](https://github.com/nvm-sh/nvm#installation-and-update) to manage your node versions. e.g. with: `nvm install 12 && nvm use 12` +We are currently deploying the CLI with only Node.js v18.x. If you are running a different version of Node.js, consider using [NVM](https://github.com/nvm-sh/nvm#installation-and-update) to manage your node versions. e.g. with: `nvm install 18 && nvm use 18` {% endhint %} {% hint style="info" %} diff --git a/packages/docs/sdk/docs/contractkit/README.md b/packages/docs/sdk/docs/contractkit/README.md index 53f348bf8e..4e35aeabfb 100644 --- a/packages/docs/sdk/docs/contractkit/README.md +++ b/packages/docs/sdk/docs/contractkit/README.md @@ -33,7 +33,7 @@ npm install @celo/contractkit yarn add @celo/contractkit ``` -You will need Node.js v12.x. or greater. +You will need Node.js v18.x. or greater. To start working with contractkit you need a `kit` instance: diff --git a/packages/sdk/contractkit/README.md b/packages/sdk/contractkit/README.md index e40fbbbbb9..76fe66cb28 100644 --- a/packages/sdk/contractkit/README.md +++ b/packages/sdk/contractkit/README.md @@ -29,7 +29,7 @@ npm install @celo/contractkit yarn add @celo/contractkit ``` -You will need Node.js v12.x. or greater. +You will need Node.js v18.x. or greater. To start working with contractkit you need a `kit` instance: