Over a million developers have joined DZone.
{{announcement.body}}
{{announcement.title}}

Deploy Containerized Applications on Your Laptop in Less Than Five Minutes

DZone's Guide to

Deploy Containerized Applications on Your Laptop in Less Than Five Minutes

If you are using boot2docker on MacOS, it is now easier than ever to deploy containerized applications on your laptop using Nirmata.

· Cloud Zone
Free Resource

What if you could learn how to use MongoDB directly from the experts, on your schedule, for free? We've put together the ultimate guide for learning MongoDB. Sign up and you'll receive instructions for how to get started!

Requirements:

  • You will need boot2docker installed and running on your laptop
  • You will need a Nirmata account – you can sign up for a free trial

Follow these steps to setup Nirmata and deploy applications:

  • Login to Nirmata web console and go to the Host Groups section
  • Select ‘Other’ from the left navigation panel and click on ‘Add Host Group’ button. You can specify the host group name and on Resource Selection Tab, select Environment type as Sandbox. Click Finish to create a new host group. On the host group page, note the host group id.

b2d-1

b2d-2

b2d-3

  • On your laptop, ensure boot2docker is installed and initialized. Verify docker is running (use ‘docker ps’ command). Run the following command to install the Nirmata agent:
  • curl -sSL http://www.nirmata.io/nirmata-host-agent/nirmata-b2d.sh |sh -s <host group id>


    The agent should get installed and will be up and running in a couple minutes.

    b2d-4

  • Go to Nirmata web console and verify your laptop is connected.
  • b2d-5


  • Now go to the Application section and import a sample blueprint.
  • b2d-6

  • Next go to the Environment section and add an environment. Provide an environment name, select Sandbox as the environment type and select the recently imported application. Click finish to start deployment of the application.
  • b2d-7

    Thats it! You are now setup to deploy and manage complex applications on to your laptop.

    b2d-8

    You can also find the nirmata agent install script on github. Feel free to take a look at it and customize it for your needs.

    What if you could learn how to use MongoDB directly from the experts, on your schedule, for free? We've put together the ultimate guide for learning MongoDBSign up and you'll receive instructions for how to get started!

    Topics:
    docker ,nirmata ,microservices

    Published at DZone with permission of Jim Bugwadia, DZone MVB. See the original article here.

    Opinions expressed by DZone contributors are their own.

    THE DZONE NEWSLETTER

    Dev Resources & Solutions Straight to Your Inbox

    Thanks for subscribing!

    Awesome! Check your inbox to verify your email so you can start receiving the latest in tech news and resources.

    X

    {{ parent.title || parent.header.title}}

    {{ parent.tldr }}

    {{ parent.urlSource.name }}