Skip to content

Commit

Permalink
[gitpod] fix #4832: enable electron testing
Browse files Browse the repository at this point in the history
Signed-off-by: Anton Kosyakov <[email protected]>
  • Loading branch information
akosyakov committed Apr 9, 2019
1 parent 8a95a26 commit 562586c
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 2 deletions.
22 changes: 22 additions & 0 deletions .gitpod.dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
FROM gitpod/workspace-full-vnc:latest

USER root
# Install custom tools, runtime, etc.
RUN apt-get update \
# window manager
&& apt-get install -y jwm \
# electron
&& apt-get install -y libgtk-3-0 libnss3 libasound2 \
# native-keymap
&& 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
12 changes: 10 additions & 2 deletions .gitpod.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,16 @@
image:
file: .gitpod.dockerfile
ports:
- port: 3000
- port: 6080
onOpen: ignore
- port: 5900
onOpen: ignore
tasks:
- init: nvm install 10 && nvm use 10 && yarn
command: yarn --cwd examples/browser start ../..
- init: yarn
command: >
jwm &
yarn --cwd examples/browser start ../..
github:
prebuilds:
pullRequestsFromForks: true

0 comments on commit 562586c

Please sign in to comment.