Skip to content

CheesecakeLabs/selenium-serverless-example

Repository files navigation

Requirements

  1. Docker
  2. Node.js, NPM
  3. Python >= 3.7

Setting up local environment:

  1. run npm install to install the serverless framework
  2. download your chromedriver from https://chromedriver.chromium.org/downloads and add to the project root folder
  3. run python -m venv venv to initiate a python virtual environment
  4. run source ./venv/bin/activate to activate the virtual enviroment
  5. run pip install -r requirements.txt to install the production dependencies
  6. run pip install -r requirements-dev.txt to install the development dependencies

Running Locally

  1. Setup local environment following previous instructions
  2. choose the handler you want to execute and run it following this pattern:
$ python -m src.handlers.example

Scripts

You can check the scripts on the makefile

Todo

  • Setup CI/CD

Important

Do not versionate .env files in real projects

More information

  1. https://github.com/umihico/docker-selenium-lambda
  2. https://www.serverless.com/blog/container-support-for-lambda

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published