Skip to content

Commit f6b9782

Browse files
committed
Merge branch 'main' of github.com:umihico/docker-selenium-lambda into main
2 parents 59ead7b + 1e07f89 commit f6b9782

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
FROM public.ecr.aws/lambda/python:latest as build
1+
FROM public.ecr.aws/lambda/python@sha256:6d1f90773cfa3a2ca08f27ea00e6994650d482bd3f330c2b574dade0b0dad8fe as build
22
RUN yum install -y unzip && \
33
curl -Lo "/tmp/chromedriver.zip" "https://chromedriver.storage.googleapis.com/96.0.4664.45/chromedriver_linux64.zip" && \
44
curl -Lo "/tmp/chrome-linux.zip" "https://www.googleapis.com/download/storage/v1/b/chromium-browser-snapshots/o/Linux_x64%2F929511%2Fchrome-linux.zip?alt=media" && \
55
unzip /tmp/chromedriver.zip -d /opt/ && \
66
unzip /tmp/chrome-linux.zip -d /opt/
77

8-
FROM public.ecr.aws/lambda/python:latest
8+
FROM public.ecr.aws/lambda/python@sha256:6d1f90773cfa3a2ca08f27ea00e6994650d482bd3f330c2b574dade0b0dad8fe
99
RUN yum install atk cups-libs gtk3 libXcomposite alsa-lib \
1010
libXcursor libXdamage libXext libXi libXrandr libXScrnSaver \
1111
libXtst pango at-spi2-atk libXt xorg-x11-server-Xvfb \

README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,20 +5,21 @@ This is minimum demo of headless chrome and selenium on container image on AWS L
55
This image goes with these versions. [These are automatically updated and tested everyday. ![CircleCI](https://circleci.com/gh/umihico/docker-selenium-lambda/tree/circleci.svg?style=svg)](https://circleci.com/gh/umihico/docker-selenium-lambda/tree/circleci)
66

77
- Python 3.9.8
8-
- chromium 96.0.4664.93
8+
- chromium 96.0.4664.110
99
- chromedriver 96.0.4664.45
1010
- selenium 4.1.0
1111

1212

13-
### Running the demo
13+
## Running the demo
1414

1515
```bash
16+
$ npm install -g serverless # skip this line if you have already installed Serverless Framework
1617
$ export AWS_REGION=ap-northeast-1 # You can specify region or skip this line. us-east-1 will be used by default.
1718
$ sls create --template-url "https://github.com/umihico/docker-selenium-lambda/tree/main" --path docker-selenium-lambda && cd $_
1819
$ sls deploy
1920
$ sls invoke --function demo # Yay! You will get texts of example.com
2021
```
2122

22-
### Side Project
23+
## Side Project
2324

2425
If you don't want to create functions each time for each purpose, Please check out [pythonista-chromeless](https://github.com/umihico/pythonista-chromeless)

0 commit comments

Comments
 (0)