Contains the tools to build & package dotnet core aws lambdas
4.3K
Contains the tools to build & package dotnet core aws lambdas
docker run -it --rm -v "$(PWD):/var/app" cfbarbero/aws-lambda-dotnet-build /bin/bash
dotnet restore
dotnet test tests/tests.csproj
cd src/project
dotnet build
cd src/project
dotnet lambda package -f netcoreapp1.0 -c Release -o build.zip
aws cloudformation package --template-file serverless.template --s3-bucket <sam-artifactbucket> --output-template-file compiledTemplate.yaml
To map credentials into the container you should map your ~/.aws folder into the container.
Running your container like below will set the aws credentials/config from your local machine available to any user of the docker container (ie root, jenkins, etc)
docker run -it --rm -e "HOME=/home" -v $HOME/.aws:/home/.aws cfbarbero/aws-lambda-dotnet-build
Content type
Image
Digest
Size
643.9 MB
Last updated
over 8 years ago
docker pull cfbarbero/aws-lambda-dotnet-build