Skip to content

Commit 31d65ef

Browse files
committed
explain example deployment
1 parent 6b66ada commit 31d65ef

File tree

2 files changed

+18
-2
lines changed

2 files changed

+18
-2
lines changed

Makefile_ImageMagick

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,8 @@ $(TARGET_DIR)/bin/identify: $(IMAGE_MAGICK_SOURCE) $(LIBS)
145145
--disable-docs \
146146
--without-magick-plus-plus \
147147
--without-perl \
148-
--without-x
148+
--without-x \
149+
--disable-openmp
149150
make clean
150151
make all
151152
make install

README.md

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ Amazon Linux 2 instances for Lambda no longer contain system utilities, so `conv
88

99
* Docker desktop
1010
* Unix Make environment
11+
* AWS command line utilities (just for deployment)
1112

1213
## Compiling the code
1314

@@ -46,13 +47,27 @@ This is not a full-blown ImageMagick setup you can expect on a regular Linux box
4647

4748
## Deploying to AWS as a layer
4849

49-
* `make deploy DEPLOYMENT_BUCKET=<YOUR BUCKET NAME>`
50+
Run the following command to deploy the compiled result as a layer in your AWS account.
51+
52+
```
53+
make deploy DEPLOYMENT_BUCKET=<YOUR BUCKET NAME>
54+
```
5055

5156
### configuring the deployment
5257

5358
By default, this uses imagemagick-layer as the stack name. Provide a `STACK_NAME` variable when
5459
calling `make deploy` to use an alternative name.
5560

61+
### example usage
62+
63+
An example project is in the [example](example) directory. It sets up two buckets, and listens to file uploads on the first bucket to convert and generate thumbnails, saving to the second bucket. You can deploy it from the root Makefile using:
64+
65+
```
66+
make deploy-example DEPLOYMENT_BUCKET=<YOUR BUCKET NAME>
67+
```
68+
69+
70+
5671
## Info on scripts
5772

5873
For more information, check out:

0 commit comments

Comments
 (0)