Skip to content

Commit

Permalink
[gitpod] fix #4832: enable electron testing
Browse files Browse the repository at this point in the history
  • Loading branch information
akosyakov committed Apr 9, 2019
1 parent 8a95a26 commit 1840786
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
17 changes: 17 additions & 0 deletions .gitpod.dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
FROM gitpod/workspace-full-vnc:latest

USER root
# Install custom tools, runtime, etc.
RUN apt-get update \
&& apt-get install -y libx11-dev libxkbfile-dev \
&& apt-get clean && rm -rf /var/cache/apt/* && rm -rf /var/lib/apt/lists/* && rm -rf /tmp/*

USER gitpod
# Apply user-specific settings
RUN bash -c ". .nvm/nvm.sh \
&& nvm install 10 \
&& nvm use 10 \
&& npm install -g yarn"

# Give back control
USER root
4 changes: 3 additions & 1 deletion .gitpod.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
image:
file: .gitpod.dockerfile
ports:
- port: 3000
tasks:
- init: nvm install 10 && nvm use 10 && yarn
- init: yarn
command: yarn --cwd examples/browser start ../..
github:
prebuilds:
Expand Down

0 comments on commit 1840786

Please sign in to comment.