Skip to content

oiz-y/sagemath-lambda-container-sample

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 

Repository files navigation

sagemath-lambda-container-sample:star:

Overview:eyes:

This sample code is for running the sagemath docker image with AWS Lambda.

Usage:white_check_mark:

Build image

$ git clone https://github.com/oiz-y/sagemath-lambda-container-sample.git
$ cd sagemath-lambda-container-sample/sage-demo
$ docker build -t sage-demo .

Push image

$ aws ecr get-login-password --region ${AWS_REGION} | docker login --username AWS --password-stdin ${ACCOUNT_ID}.dkr.ecr.${AWS_REGION}.amazonaws.com
$ docker tag sage-demo:latest ${ACCOUNT_ID}.dkr.ecr.${AWS_REGION}.amazonaws.com/sage-demo:latest
$ docker push ${ACCOUNT_ID}.dkr.ecr.${AWS_REGION}.amazonaws.com/sage-demo:latest

Invoke Lambda function

Update the ECR repository image referenced by the Lambda function and invoke the Lambda function.

App URL:globe_with_meridians:

The following is an example of an application using sagemath docker with AWS Lambda container.

Project link : https://github.com/oiz-y/sage-lambda-container-app

Reference:book:

License:bell:

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published