Skip to content

Commit

Permalink
[optimze] node version
Browse files Browse the repository at this point in the history
  • Loading branch information
Soecka committed Aug 21, 2022
1 parent 768f089 commit 9290ad8
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 15 deletions.
7 changes: 7 additions & 0 deletions .gitpod.Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
FROM gitpod/workspace-full:latest

RUN bash -c 'VERSION="14.8.0" \
&& source $HOME/.nvm/nvm.sh && nvm install $VERSION \
&& nvm use $VERSION && nvm alias default $VERSION'

RUN echo "nvm use default &>/dev/null" >> ~/.bashrc.d/51-nvm-fix
32 changes: 17 additions & 15 deletions .gitpod.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,19 @@
tasks:
- init: >
git clone https://github.com/algorithm-visualizer/server.git &&
cd server &&
npm install &&
echo -e "GITHUB_CLIENT_ID=dummy\nGITHUB_CLIENT_SECRET=dummy\nAWS_ACCESS_KEY_ID=dummy\nAWS_SECRET_ACCESS_KEY=dummy" > .env.local &&
cd ..
command: cd server && npm run watch
- init: >
echo 'DANGEROUSLY_DISABLE_HOST_CHECK=true' > .env.local &&
nvm install v12.22.12 && nvm use v12.22.12 && npm install
command: npm start
- init: >
git clone https://github.com/algorithm-visualizer/server.git &&
cd server &&
npm install &&
echo -e "GITHUB_CLIENT_ID=dummy\nGITHUB_CLIENT_SECRET=dummy\nAWS_ACCESS_KEY_ID=dummy\nAWS_SECRET_ACCESS_KEY=dummy" > .env.local &&
cd ..
command: cd server && npm run watch
- init: >
npm install &&
echo 'DANGEROUSLY_DISABLE_HOST_CHECK=true' > .env.local
command: npm start
ports:
- port: 3000
onOpen: notify
- port: 8080
onOpen: ignore
- port: 3000
onOpen: notify
- port: 8080
onOpen: ignore
image:
file: .gitpod.Dockerfile

0 comments on commit 9290ad8

Please sign in to comment.