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: CONTRIBUTING.md
+1-11Lines changed: 1 addition & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,14 +1,11 @@
1
1
# Contributing Guidelines
2
-
3
2
Thank you for your interest in contributing to our project. Whether it's a bug report, new feature, correction, or additional
4
3
documentation, we greatly value feedback and contributions from our community.
5
4
6
5
Please read through this document before submitting any issues or pull requests to ensure we have all the necessary
7
6
information to effectively respond to your bug report or contribution.
8
7
9
-
10
8
## Reporting Bugs/Feature Requests
11
-
12
9
We welcome you to use the GitHub issue tracker to report bugs or suggest features.
13
10
14
11
When filing an issue, please check [existing open](https://github.com/awslabs/serverless-image-handler/issues), or [recently closed](https://github.com/awslabs/serverless-image-handler/issues?utf8=%E2%9C%93&q=is%3Aissue%20is%3Aclosed%20), issues to make sure somebody else hasn't already
@@ -19,7 +16,6 @@ reported the issue. Please try to include as much information as you can. Detail
19
16
* Any modifications you've made relevant to the bug
20
17
* Anything unusual about your environment or deployment
21
18
22
-
23
19
## Contributing via Pull Requests
24
20
Contributions via pull requests are much appreciated. Before sending us a pull request, please ensure that:
25
21
@@ -39,23 +35,17 @@ To send us a pull request, please:
39
35
GitHub provides additional document on [forking a repository](https://help.github.com/articles/fork-a-repo/) and
40
36
[creating a pull request](https://help.github.com/articles/creating-a-pull-request/).
41
37
42
-
43
38
## Finding contributions to work on
44
39
Looking at the existing issues is a great way to find something to contribute on. As our projects, by default, use the default GitHub issue labels ((enhancement/bug/duplicate/help wanted/invalid/question/wontfix), looking at any ['help wanted'](https://github.com/awslabs/serverless-image-handler/labels/help%20wanted) issues is a great place to start.
45
40
46
-
47
41
## Code of Conduct
48
42
This project has adopted the [Amazon Open Source Code of Conduct](https://aws.github.io/code-of-conduct).
49
43
For more information see the [Code of Conduct FAQ](https://aws.github.io/code-of-conduct-faq) or contact
If you discover a potential security issue in this project we ask that you notify AWS/Amazon Security via our [vulnerability reporting page](http://aws.amazon.com/security/vulnerability-reporting/). Please do **not** create a public github issue.
55
48
56
-
57
49
## Licensing
58
-
59
-
See the [LICENSE](https://github.com/awslabs/serverless-image-handler/blob/master/LICENSE) file for our project's licensing. We will ask you to confirm the licensing of your contribution.
60
-
50
+
See the [LICENSE](https://github.com/awslabs/serverless-image-handler/blob/master/LICENSE.txt) file for our project's licensing. We will ask you to confirm the licensing of your contribution.
61
51
We may ask you to sign a [Contributor License Agreement (CLA)](http://en.wikipedia.org/wiki/Contributor_License_Agreement) for larger changes.
Due to a [change in the AWS Lambda execution environment](https://aws.amazon.com/blogs/compute/upcoming-updates-to-the-aws-lambda-execution-environment/), Serverless Image Handler v3 deployments are functionally broken. To address the issue we have released [minor version update v3.1.1](https://solutions-reference.s3.amazonaws.com/serverless-image-handler/v3.1.1/serverless-image-handler.template). We recommend all users of v3 to run cloudformation stack update with v3.1.1. Additionally, we suggest you to look at v4 of the solution and migrate to v4 if it addresses all of your use cases.
2
+
Due to a [change in the AWS Lambda execution environment](https://aws.amazon.com/blogs/compute/upcoming-updates-to-the-aws-lambda-execution-environment/), Serverless Image Handler v3 deployments are functionally broken. To address the issue we have released [minor version update v3.1.1](https://solutions-reference.s3.amazonaws.com/serverless-image-handler/v3.1.1/serverless-image-handler.template). We recommend all users of v3 to run cloudformation stack update with v3.1.1. Additionally, we suggest you to look at v4 of the solution and migrate to v4 if it addresses all of your use cases.
3
3
4
4
# AWS Serverless Image Handler Lambda wrapper for SharpJS
5
5
A solution to dynamically handle images on the fly, utilizing Sharp (https://sharp.pixelplumbing.com/en/stable/).
6
6
Published version, additional details and documentation are available here: https://aws.amazon.com/solutions/serverless-image-handler/
7
7
8
8
_Note:_ it is recommend to build the application binary on Amazon Linux.
9
9
10
-
## Running unit tests for customization
10
+
## Building distributable for customization
11
11
* Clone the repository, then make the desired code changes
12
-
* Next, run unit tests to make sure added customization passes the tests
* Configure the bucket name of your target Amazon S3 distribution bucket
16
+
* Run unit tests to make sure added customization passes the tests:
21
17
```
22
-
export TEMPLATE_OUTPUT_BUCKET=my-bucket-name # bucket where cfn template will reside
23
-
export DIST_OUTPUT_BUCKET=my-bucket-name # bucket where customized code will reside
24
-
export VERSION=my-version # version number for the customized code
18
+
cd ./deployment
19
+
chmod +x ./run-unit-tests.sh
20
+
./run-unit-tests.sh
25
21
```
26
-
_Note:_ You would have to create 2 buckets, one named 'my-bucket-name' and another regional bucket named 'my-bucket-name-<aws_region>'; aws_region is where you are testing the customized solution. Also, the assets in bucket should be publicly accessible.
_Note:_ In the above example, the solution template will expect the source code to be located in the my-bucket-name-[region_name] with prefix serverless-image-handler/my-version/serverless-image-handler.zip
50
40
51
-
* Get the link of the serverless-image-handler.template uploaded to your Amazon S3 bucket.
41
+
* Get the link of the serverless-image-handler.template uploaded to your Amazon S3 bucket
42
+
52
43
* Deploy the Serverless Image Handler solution to your account by launching a new AWS CloudFormation stack using the link of the serverless-image-handler.template
Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
58
48
59
-
Licensed under the Amazon Software License (the "License"). You may not use this file except in compliance with the License. A copy of the License is located at
49
+
Licensed under the Apache License, Version 2.0 (the "License");
50
+
you may not use this file except in compliance with the License.
51
+
You may obtain a copy of the License at
60
52
61
-
http://aws.amazon.com/asl/
53
+
http://www.apache.org/licenses/LICENSE-2.0
62
54
63
-
or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, express or implied. See the License for the specific language governing permissions and limitations under the License.
55
+
Unless required by applicable law or agreed to in writing, software
56
+
distributed under the License is distributed on an "AS IS" BASIS,
57
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
58
+
See the License for the specific language governing permissions and
0 commit comments