Dotnet app that builds in CircleCI and publishes to AWS SNS.
- launch an linux AMI t2.micro instance on aws free tier
- install WinSCP, convert your.pem to a .ppk, and launch your PuTTY CLI & WinSCP file manager
- SSH into the instance and start doing stuff:
- intall git
- install docker
- install .NET core using CentOS instructions (https://www.microsoft.com/net/core#linuxcentos)
- install git and run
git clone https://github.com/fordprior/dotnet-http-sns
- cd into the repo and execute
dotnet restore
,dotnet build
, anddotnet run
to see Snagajob's public repos - cd .. out and enter
sudo usermod -aG docker $(whoami)
and reboot your instance - cd into the project and type
docker build -t dotnetapp .
docker images
to see what you've done, anddocker run --name test -t dotnetapp
to run the app- connect w/ ecs?
http://docs.aws.amazon.com/AmazonECS/latest/developerguide/docker-basics.html https://stackoverflow.com/questions/29112692/aws-cli-tools-on-circle-ci-configure-unknown-command https://circleci.com/blog/circleci-aws-ecrecs/