Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gitpod setup #4

Open
wants to merge 6 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions .gitpod.Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
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 libnss3 && \
sudo rm -rf /var/lib/apt/lists/*

# Install Playwright dependencies
RUN npx -y playwright install --with-deps
13 changes: 13 additions & 0 deletions .gitpod.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
image:
file: .gitpod.Dockerfile

ports:
- port: 6080

tasks:
- init: |
virtualenv -p $(which python3) pyenv
command: |
source pyenv/bin/activate
pip install -r requirements.txt
python server.py
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down