-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[gitpod] fix #4832: enable electron testing
Signed-off-by: Anton Kosyakov <[email protected]>
- Loading branch information
Showing
2 changed files
with
32 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |