Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am ronaldwidha on github.
  • I am nunuyorker (https://keybase.io/nunuyorker) on keybase.
  • I have a public key ASAOibEFC3ovdIqDHT_BHJnbTJUKKOTM7SGYVE1OleWGxgo

To claim this, I am signing this object:

function handle(event, context, callback) {
var exec = require('child_process').exec;
exec("dotnet your-dotnet-core.dll", function (error, stdout, stderr) {
if (stderr) {
callback(new Error(stderr), {});
}
else {
callback(null, { "message": stdout);
}
});
cp /opt/dotnet/ ./deploy
cp /usr/lib64/libunwind* ./deploy
dotnet restore
dotnet publish --output deploy
sudo yum install libunwind libicu
curl -sSL -o dotnet.tar.gz https://go.microsoft.com/fwlink/?LinkID=827529
sudo mkdir -p /opt/dotnet && sudo tar zxf dotnet.tar.gz -C /opt/dotnet
sudo ln -s /opt/dotnet/dotnet /usr/local/
sudo su
yum erase java
yum erase libpng-2:1.2.49-2.14.amzn1.x86_64
mkdir -p /tmp/dotnet_dependencies
cd /tmp/dotnet_dependencies
wget http://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/Packages/l/libpng15-1.5.27-1.fc25.x86_64.rpm
yum install -y ./libpng15-1.5.27-1.fc25.x86_64.rpm
cd ..
rm -rf dotnet_dependencies
cd ~