You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+35-8Lines changed: 35 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,7 +12,6 @@
12
12
13
13
This repo contains code used to run the [online demo](https://vladholubiev.com/serverless-libreoffice).
14
14
15
-
16
15
```
17
16
├── compile.sh <-- commands used to compile LibreOffice for Lambda
18
17
├── infra <-- terraform config to deploy example Lambda
@@ -35,23 +34,23 @@ Compiled and ready to use archive can be downloaded under [Releases section](htt
35
34
36
35
# How to compile by yourself
37
36
38
-
> Check out a comprehensive [step-by-step tutorial](STEP_BY_STEP.md) from 0 to deployed function.
37
+
> Check out a comprehensive [step-by-step tutorial](STEP_BY_STEP.md) from 0 to deployed function.
39
38
40
39
1. Go to [Lambda Execution Environment and Available Libraries](https://docs.aws.amazon.com/lambda/latest/dg/current-supported-versions.html) page to get the latest AMI id
41
-
2.Click on [this link](https://console.aws.amazon.com/ec2/v2/home#Images:visibility=public-images;search=amzn-ami-hvm-2017.03.1.20170812-x86_64-gp2) to get AMI id for your region
40
+
2. Click on [this link](https://console.aws.amazon.com/ec2/v2/home#Images:visibility=public-images;search=amzn-ami-hvm-2017.03.1.20170812-x86_64-gp2) to get AMI id for your region
42
41
3. Spin up a `c5.2xlarge` spot instance with ~ 100 GB of storage attached
43
42
4. Follow the steps in `compile.sh` file in the repo
44
43
45
44
# Help
46
45
47
-
*[List of RPM Packages available in AWS Lambda](https://gist.github.com/vladgolubev/1dac4ed47a5febf110c668074c6b671c)
48
-
*[List of Libraries available in AWS Lambda](https://gist.github.com/vladgolubev/439559fc7597a4fb51eaa9e97b72f319)
46
+
-[List of RPM Packages available in AWS Lambda](https://gist.github.com/vladgolubev/1dac4ed47a5febf110c668074c6b671c)
47
+
-[List of Libraries available in AWS Lambda](https://gist.github.com/vladgolubev/439559fc7597a4fb51eaa9e97b72f319)
49
48
50
49
# Related Projects
51
50
52
-
*[Docker in AWS Lambda](https://github.com/vladgolubev/docker-in-aws-lambda)
53
-
*[NPM package with bundled LibreOffice for Lambda (85 MB)](https://github.com/shelfio/aws-lambda-libreoffice)
54
-
*[Lambda Layer with LibreOffice](https://github.com/shelfio/libreoffice-lambda-layer)
51
+
-[Docker in AWS Lambda](https://github.com/vladgolubev/docker-in-aws-lambda)
52
+
-[NPM package with bundled LibreOffice for Lambda (85 MB)](https://github.com/shelfio/aws-lambda-libreoffice)
53
+
-[Lambda Layer with LibreOffice](https://github.com/shelfio/libreoffice-lambda-layer)
55
54
56
55
# How To Help
57
56
@@ -80,6 +79,34 @@ Here is the list of: [available RPM packages](https://gist.github.com/vladgolube
80
79
and [libraries](https://gist.github.com/vladgolubev/439559fc7597a4fb51eaa9e97b72f319)
81
80
available in AWS Lambda Environment, which can be helpful.
82
81
82
+
You can also use multi compression level, with upx and then decompress after brotli.
83
+
84
+
## Testing
85
+
86
+
Update repo for testing. Return before S3 for example, hardcode or generate files to convert and setup variables. Then simply run:
87
+
88
+
```
89
+
docker run \
90
+
-v "\$PWD":/var/task \
91
+
lambci/lambda:nodejs12.x src/handler.handler
92
+
```
93
+
94
+
After successful execution, get the resulted files to check the pdfs.
0 commit comments