Skip to content
# Example AWS Lambda C# .NET Core 3.0 Release and ReadyToRun with connect MySQL via not using any ORM
C# Dockerfile Shell
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src/aws-lambda-netcore3-readytorun
.gitignore
Readme.md

Readme.md

Example C# .NET Core 3.0.100 with ReadyToRun for connect MySQL via not using any ORM

Preparing

  1. Import Database from database.sql

  2. Add config database in your Environment Variable as "DB_CONNECTION" like this

DB_CONNECTION=Server=localhost;Port=3306;Uid=root;Pwd=1234;Database=lab;CharSet=utf8;ConvertZeroDateTime=True;
  1. FOR AWS LAMBDA ENV - must add bundle directory
DOTNET_BUNDLE_EXTRACT_BASE_DIR=/tmp/

## Command for build

```bash
sh build_linux.sh

## Command for upload to aws s3

```bash
aws s3 cp package.zip s3://[Foldername] [--profile AWS-PROFILE-NAME]

Command for run

$ sh run.sh [Runtime]

Example for MacOS

$ sh run.sh osx-64

Example for Linux

$ sh run.sh linux-64

Example for Windows

$ sh run.sh win-64

System Require for Linux

  • sudo apt-get install clang-3.9
  • sudo apt-get install libunwind-dev
  • sudo apt-get install libcurl4-openssl-dev
  • sudo apt-get install zlib1g-dev
  • sudo apt-get install libkrb5-dev
  • export CppCompilerAndLinker=clang-3.9
You can’t perform that action at this time.