Sign inSign up

sergeyshkolin/magic-app

By sergeyshkolin

Updated almost 9 years ago

test app

Image
0

221

sergeyshkolin/magic-app repository overview

Magic APP

Sandbox VM

To be able to test locally you would need to run VM with pre-installed docker-engine and docker-compose

  • parallels: vagrant up --provider parallels
  • virtualbox: vagrant up --provider virtualbox

Run docker-compose up -d to build image and run container. Service will be availible on all interfaces and port 8888. E.g. 172.17.0.1:8888 You can send your requests to docker0 interface and port 8888 to test functionality. Output can be found by using docker logs command docker logs -f magic-container

Deploy to AWS

  • Run terraform init to initialize environment;
  • Make sure that variables.tf contain correct data, espesially aws_access_key and aws_secret_key;
  • Run terraform plan to validate your deployment and terraform apply to bootstrap this on AWS.

After this you will have:

  • Provisioned componets like ssh-key, VPC, security groups;
  • EC2 instance with provisioned docker container deployed from hub.docker.com;
  • Enabled based CloudWatch metrics;

Comments

Hi Kessiler,

couple of comments regarding challenge.

The solution for the problem above should be written in NodeJS.

As I told you during our call, I don't have expereince with NodeJS, so I have desided to wrote simple app on python to be able to finish with this challenge. Hope this is not the issue.

Sergey

Tag summary

Content type

Image

Digest

Size

260.1 MB

Last updated

almost 9 years ago

docker pull sergeyshkolin/magic-app