Skip to content

Commit e79b55b

Browse files
authored
Merge pull request #13 from umihico/feature/README
feature/README
2 parents 32ed94b + ecb65f7 commit e79b55b

File tree

2 files changed

+6
-10
lines changed

2 files changed

+6
-10
lines changed

README.md

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,16 +12,12 @@ This image goes with these versions.
1212
### Running the demo
1313

1414
```bash
15-
$ YOUR_REGION=ap-northeast-1 # your region
16-
$ git clone --depth 1 https://github.com/umihico/docker-selenium-lambda.git docker-selenium-lambda && cd $_
17-
$ sls deploy --region $YOUR_REGION
18-
$ sls invoke -f server --region $YOUR_REGION
15+
$ export AWS_REGION=ap-northeast-1 # You can specify region or skip this line. us-east-1 will be used by default.
16+
$ sls create --template-url "https://github.com/umihico/docker-selenium-lambda/tree/main" --path docker-selenium-lambda && cd $_
17+
$ sls deploy
18+
$ sls invoke --function demo # Yay! You will get texts of example.com
1919
```
2020

21-
### Contribution
22-
23-
I'm trying run latest Chrome but having difficulties. Please check out other branches and issues.
24-
2521
### Side Project
2622

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

serverless.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,14 @@ service: docker-selenium-lambda
33
provider:
44
name: aws
55
stage: ${opt:stage, 'prod'}
6-
region: ${opt:region}
6+
region: ${env:AWS_REGION, 'us-east-1'}
77
ecr:
88
images:
99
test:
1010
path: ./
1111

1212
functions:
13-
server:
13+
demo:
1414
timeout: 60
1515
memorySize: 2048
1616
image:

0 commit comments

Comments
 (0)