From 1840786d6d16e078b32d2c7af1901875be939743 Mon Sep 17 00:00:00 2001 From: Anton Kosyakov Date: Tue, 9 Apr 2019 07:15:37 +0000 Subject: [PATCH] [gitpod] fix #4832: enable electron testing --- .gitpod.dockerfile | 17 +++++++++++++++++ .gitpod.yml | 4 +++- 2 files changed, 20 insertions(+), 1 deletion(-) create mode 100644 .gitpod.dockerfile diff --git a/.gitpod.dockerfile b/.gitpod.dockerfile new file mode 100644 index 0000000000000..ac3be21fe3693 --- /dev/null +++ b/.gitpod.dockerfile @@ -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 diff --git a/.gitpod.yml b/.gitpod.yml index 443adad3ff7ab..bf47803cdf915 100644 --- a/.gitpod.yml +++ b/.gitpod.yml @@ -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: