Skip to content

Commit

Permalink
Add Gitpod configuration (#735)
Browse files Browse the repository at this point in the history
  • Loading branch information
antonymilne committed Feb 15, 2022
1 parent cbda0d5 commit b468c63
Show file tree
Hide file tree
Showing 2 changed files with 59 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .gitpod.Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
FROM gitpod/workspace-full:legacy-dazzle-v1

RUN bash -c ". .nvm/nvm.sh && nvm install lts/fermium && nvm use lts/fermium && nvm alias default lts/fermium"

RUN echo "nvm use default &>/dev/null" >> ~/.bashrc.d/51-nvm-fix
54 changes: 54 additions & 0 deletions .gitpod.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
image:
file: .gitpod.Dockerfile

tasks:
- name: frontend
init: |
make sign-off
npm install
npm run build
cp -R build package/kedro_viz/html
command: |
gp sync-done build_complete
DANGEROUSLY_DISABLE_HOST_CHECK=true npm run start
- name: backend
before: echo PIP_USER=no >> ~/.bashrc && export PIP_USER=no
init: |
pip install -r package/test_requirements.txt -r demo-project/src/docker_requirements.txt --user
pip install https://github.com/kedro-org/kedro/archive/main.zip --no-deps --user --force-reinstall
command: |
gp sync-await build_complete
pip install -e package --no-deps
gp sync-done kedro_installed
make run
- name: demo-project
command: |
cd demo-project
gp sync-await kedro_installed
kedro info
ports:
- port: 4141
onOpen: open-browser
visibility: public
- port: 4142
onOpen: ignore

vscode:
extensions:
- dbaeumer.vscode-eslint

github:
prebuilds:
# enable for the master/default branch (defaults to true)
master: true
# enable for all branches in this repo (defaults to false)
branches: true
# enable for pull requests coming from this repo (defaults to true)
pullRequests: true
# enable for pull requests coming from forks (defaults to false)
pullRequestsFromForks: true
# add a "Review in Gitpod" button as a comment to pull requests (defaults to true)
addComment: false
# add a "Review in Gitpod" button to pull requests (defaults to false)
addBadge: true

0 comments on commit b468c63

Please sign in to comment.