From 4a3721b07b30cc748aa16b40afa41356aeafe34e Mon Sep 17 00:00:00 2001 From: Ofer Shaal Date: Fri, 2 Dec 2022 22:36:53 -0500 Subject: [PATCH 1/6] initial dockerfile --- .gitpod.Dockerfile | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 .gitpod.Dockerfile diff --git a/.gitpod.Dockerfile b/.gitpod.Dockerfile new file mode 100644 index 0000000..d1e9278 --- /dev/null +++ b/.gitpod.Dockerfile @@ -0,0 +1,6 @@ +FROM gitpod/workspace-full-vnc + +RUN sudo apt-get -qq update + +# Install Playwright dependencies +RUN npx playwright install --with-deps From 00190c58b0c10c94e14ed79dc25b3395ad5e06f4 Mon Sep 17 00:00:00 2001 From: Ofer Shaal Date: Fri, 2 Dec 2022 22:40:00 -0500 Subject: [PATCH 2/6] Update .gitpod.Dockerfile --- .gitpod.Dockerfile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.gitpod.Dockerfile b/.gitpod.Dockerfile index d1e9278..52752e6 100644 --- a/.gitpod.Dockerfile +++ b/.gitpod.Dockerfile @@ -1,6 +1,9 @@ FROM gitpod/workspace-full-vnc -RUN sudo apt-get -qq update +# https://www.gitpod.io/blog/native-ui-with-vnc +RUN sudo apt-get update && \ + sudo apt-get install -y libx11-dev libxkbfile-dev libsecret-1-dev libgconf2–4 libnss3 && \ + sudo rm -rf /var/lib/apt/lists/* # Install Playwright dependencies RUN npx playwright install --with-deps From cca275bded76d70fce9ac2adc825085cc4e41990 Mon Sep 17 00:00:00 2001 From: Ofer Shaal Date: Fri, 2 Dec 2022 22:41:33 -0500 Subject: [PATCH 3/6] Create .gitpod.yml --- .gitpod.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 .gitpod.yml diff --git a/.gitpod.yml b/.gitpod.yml new file mode 100644 index 0000000..e34e8ac --- /dev/null +++ b/.gitpod.yml @@ -0,0 +1,14 @@ +image: + file: .gitpod.Dockerfile + +ports: + - port: 6080 + protocol: "http" + +tasks: + - init: | + virtualenv -p $(which python3) pyenv + source pyenv/bin/activate + pip install -r requirements.txt + command: | + python server.py From 454fc58400927b583793c85611208e5d634a7aa5 Mon Sep 17 00:00:00 2001 From: Ofer Shaal Date: Sat, 3 Dec 2022 03:54:40 +0000 Subject: [PATCH 4/6] fix image --- .gitpod.Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.gitpod.Dockerfile b/.gitpod.Dockerfile index 52752e6..7fc972c 100644 --- a/.gitpod.Dockerfile +++ b/.gitpod.Dockerfile @@ -2,8 +2,8 @@ FROM gitpod/workspace-full-vnc # https://www.gitpod.io/blog/native-ui-with-vnc RUN sudo apt-get update && \ - sudo apt-get install -y libx11-dev libxkbfile-dev libsecret-1-dev libgconf2–4 libnss3 && \ + sudo apt-get install -y libx11-dev libxkbfile-dev libsecret-1-dev libnss3 && \ sudo rm -rf /var/lib/apt/lists/* # Install Playwright dependencies -RUN npx playwright install --with-deps +RUN npx -y playwright install --with-deps From 688083da18918f8360df5af7099b74520fb470c6 Mon Sep 17 00:00:00 2001 From: Ofer Shaal Date: Sat, 3 Dec 2022 03:56:32 +0000 Subject: [PATCH 5/6] fix gitpod setup --- .gitpod.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.gitpod.yml b/.gitpod.yml index e34e8ac..e389ad4 100644 --- a/.gitpod.yml +++ b/.gitpod.yml @@ -3,12 +3,11 @@ image: ports: - port: 6080 - protocol: "http" tasks: - init: | virtualenv -p $(which python3) pyenv + command: | source pyenv/bin/activate pip install -r requirements.txt - command: | python server.py From ba40b85e2c30c1939e93d2e4efa049ca74ef93a3 Mon Sep 17 00:00:00 2001 From: Ofer Shaal Date: Sat, 3 Dec 2022 04:41:00 +0000 Subject: [PATCH 6/6] feat: add README --- README.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/README.md b/README.md index 9c9e12d..33f8128 100644 --- a/README.md +++ b/README.md @@ -3,6 +3,11 @@ * It uses playwright and chromium to open browser and parse html. * It is an unoffical api for development purpose only. +## Run in Gitpod + +Instead of setting up locally, you can click on Gitpod button and get it working in your browser: + +[![Open in Gitpod](https://gitpod.io/button/open-in-gitpod.svg)](https://gitpod.io/from-referrer/) # How to install