Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update .gitpod.yml #334

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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: >
npm install &&
echo 'DANGEROUSLY_DISABLE_HOST_CHECK=true' > .env.local
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