Skip to content

An attempt to get an R runtime and function working on AWS Lambda using a container.

License

Notifications You must be signed in to change notification settings

davidkretch/r-on-lambda

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

R on AWS Lambda

This is an attempt to get an R runtime and function working on AWS Lambda using a container.

Docker push commands

Once you create your ECR repository, do the following to push your image to it.

  1. Retrieve an authentication token and authenticate your Docker client to your registry. Use the AWS CLI:
aws ecr get-login-password --region us-east-1 | docker login --username AWS --password-stdin 123456789012.dkr.ecr.us-east-1.amazonaws.com

Note: If you receive an error using the AWS CLI, make sure that you have the latest version of the AWS CLI and Docker installed.

  1. Build your Docker image using the following command. For information on building a Docker file from scratch see the instructions here . You can skip this step if your image is already built:
docker build -t r-on-lambda .
  1. After the build completes, tag your image so you can push the image to this repository:
docker tag r-on-lambda:latest 123456789012.dkr.ecr.us-east-1.amazonaws.com/r-on-lambda:latest
  1. Run the following command to push this image to your newly created AWS repository:
docker push 123456789012.dkr.ecr.us-east-1.amazonaws.com/r-on-lambda:latest

About

An attempt to get an R runtime and function working on AWS Lambda using a container.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • R 93.6%
  • Dockerfile 6.4%