Skip to content

Commit a24ecab

Browse files
committed
build(gitpod): use node v14
Gitpod defaults to node 16 and doesn't respect .bashrc, this commit adds a customer dockerfile with node v14
1 parent c3e7680 commit a24ecab

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

.gitpod.Dockerfile

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
FROM gitpod/workspace-full:latest
2+
3+
RUN bash -c 'VERSION="14" \
4+
&& source $HOME/.nvm/nvm.sh && nvm install $VERSION \
5+
&& nvm use $VERSION && nvm alias default $VERSION'
6+
7+
RUN echo "nvm use default &>/dev/null" >> ~/.bashrc.d/51-nvm-fix

.gitpod.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
# This configuration file was automatically generated by Gitpod.
22
# Please adjust to your needs (see https://www.gitpod.io/docs/config-gitpod-file)
33
# and commit this file to your remote git repository to share the goodness with others.
4+
image:
5+
file: .gitpod.Dockerfile
46

57
tasks:
6-
- init: npm install
8+
- init: npm install && npm install -g commitizen
79
command: npm run dev
810

911

0 commit comments

Comments
 (0)