Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
FROM node:8.10-alpine

ARG AWS_CLI_VERSION=1.16.86

RUN apk --update add python py-pip bash make imagemagick && \
pip --no-cache-dir install awscli==$AWS_CLI_VERSION
Copy link
Owner

@ysugimoto ysugimoto May 7, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do you use python ?
This package uses claudia.js for deploying lambda function, and all dependencies will be installed via npm package manager, so I think it wouldn't pollute your environment.

14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ put on AWS S3 bucket, this package will resize/reduce it and put to S3.
## Requirements

- Node.js ( AWS Lambda supports versions of **6.10** and **8.10** )
- **OR** Docker

## Preparation

Expand Down Expand Up @@ -141,6 +142,19 @@ npm run test-config

## Installation

### Docker

To avoid installation you may run all the commands from a docker container that has all dependencies installed.

The following command will build the docker image from the Dockerfile and tag it with `aws-lambda-image:latest`
```bash
docker build -t aws-lambda-image:latest .
```
The following command will run the docker image in a container called lambda-img and also mounts your user home to the containers ~/ so that you may reuse the aws credentials on your host in ~/.aws
```bash
docker run -v ~/:/root --name lambda-img -it aws-lambda-image:latest bash
```

### Setup

To use the automated deployment scripts you will need to have
Expand Down