Dillon Peterson
05/10/2021, 11:39 PMDillon Peterson
05/10/2021, 11:40 PMDillon Peterson
05/10/2021, 11:40 PMFrank
Frank
Dillon Peterson
05/11/2021, 1:46 AMFrank
Dillon Peterson
05/11/2021, 1:57 AMFrank
sst start
Frank
sst start
Frank
Dillon Peterson
05/11/2021, 2:44 AMDillon Peterson
05/11/2021, 2:44 AMDillon Peterson
05/11/2021, 2:45 AMFrank
docker push
the image to ECR. And then in ur SST app, do something like this to create a Lambda function with docker runtime: (I haven’t tested this code.)
import * as ecr from '@aws-cdk/aws-ecr';
const repo = ecr.Repository.fromRepositoryName(this, Repo', 'bert-lambda');
new lambda.DockerImageFunction(this, 'ECRFunction', {
code: lambda.DockerImageCode.fromEcr(repo),
});
Like I mentioned in the discussion, sst start
won’t be able to auto rebuild (ie. docker build) the docker image on code changes. That is not supported yet.Dillon Peterson
05/11/2021, 3:57 PM