From 13d3e555d21474b7bcf54815084c3b1c0aa8aaea Mon Sep 17 00:00:00 2001 From: Mark Cola Date: Mon, 26 Dec 2022 14:37:21 +1100 Subject: [PATCH 1/2] fix: update gitpod to use node version 18 --- .gitpod.Dockerfile | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.gitpod.Dockerfile b/.gitpod.Dockerfile index 08c05060f6595..42ac42e242e2e 100644 --- a/.gitpod.Dockerfile +++ b/.gitpod.Dockerfile @@ -1,3 +1,9 @@ FROM gitpod/workspace-full +RUN bash -c 'NODE_VERSION="18" \ + && source $HOME/.nvm/nvm.sh && nvm install $NODE_VERSION \ + && nvm use $NODE_VERSION && nvm alias default $NODE_VERSION' + +RUN echo "nvm use default &>/dev/null" >> ~/.bashrc.d/51-nvm-fix + RUN npm -g install gatsby-dev-cli From 25d2ccd09a6c178866e9bd777e60a414561a7fc0 Mon Sep 17 00:00:00 2001 From: Mark Cola Date: Thu, 5 Jan 2023 10:55:43 +1100 Subject: [PATCH 2/2] fix(gatsby): update gitpod to use .nvmrc --- .gitpod.Dockerfile | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/.gitpod.Dockerfile b/.gitpod.Dockerfile index 42ac42e242e2e..fd033b2108c22 100644 --- a/.gitpod.Dockerfile +++ b/.gitpod.Dockerfile @@ -1,9 +1,8 @@ FROM gitpod/workspace-full -RUN bash -c 'NODE_VERSION="18" \ - && source $HOME/.nvm/nvm.sh && nvm install $NODE_VERSION \ - && nvm use $NODE_VERSION && nvm alias default $NODE_VERSION' +ADD .nvmrc . +RUN bash -c 'source $HOME/.nvm/nvm.sh && nvm install && nvm use' -RUN echo "nvm use default &>/dev/null" >> ~/.bashrc.d/51-nvm-fix +RUN echo "nvm use &>/dev/null" >> ~/.bashrc.d/51-nvm-fix RUN npm -g install gatsby-dev-cli