package main
import (
"context"
"net/http"
"github.com/aws/aws-lambda-go/events"
"github.com/aws/aws-lambda-go/lambda"- Install
Truffle
npm install -g truffle- Install Ganache
To install ganache globally as cli tool:
- Run mongodb without auth
docker run --name mongo_db --cpus="1" -m 2G -e MONGODB_EXTRA_FLAGS='--wiredTigerCacheSizeGB=1' --restart always -v /home/$USER/.mongodata:/data/db -d mongo:3.6- Connect to mongodb without auth and create root user
use adminDownload the Cloudwatch agent
$ wget https://s3.amazonaws.com/amazoncloudwatch-agent/ubuntu/amd64/latest/amazon-cloudwatch-agent.debInstall Cloudwatch agent package
$ sudo dpkg -i -E ./amazon-cloudwatch-agent.deb
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| FROM node:16-alpine3.12 | |
| RUN npm install -g ganache-cli | |
| CMD ["ganache-cli", "-h", "0.0.0.0"] |