Using the Docker Hub Marketplace to Deploy Container-based Applications

Solution Verified in:

  • OpenNebula: 5.12

Issue

This tutorial will show how to access the Docker Hub marketplace from Sunstone (OpenNebula's WebUI), import an official Docker image and deploy an application as a Firecracker MicroVM.

Requirements

To follow the tutorial you will need an OpenNebula cloud deployment with at least one Firecracker node.

Solution

Example

If you prefer a video-tutorial, have a look at the following screencast, which follows the procedure described in this article step by step:

nginx.jpg

As a practical example, we are going to import the nginx application from the Docker Hub marketplace.

OpenNebulaMarketplaces.png

You can select nginx from the Apps tab.

OpenNebulaDockerHubApps.png

OpenNebulaNginxApp.png

Now download it by selecting the image datastore and optionally a tag of the Docker image

ImportNginxApp.png

When nginx is imported from Docker Hub, a VM template is also created. You'll have to update the template.

UpdateNginxVMTemplate.png

You can have to add a virtual network to access the nginx application

AddNetworkNginxVMTemplate.png

A kernel image should be set in the OS section. The kernel boot parameters are already setup during the import process.

AddKernelNginxVMTemplate.png

Note

A kernel image for Firecracker microVMs can be imported from the OpenNebula Public Marketplace:

OpenNebulaFirecrackerKernel.png

And the start script.

AddStartScriptNginxVMTemplate.png

Don't forget to update the Custom Vars with a root password of your choice.

AddCustomVarsNginxTemplate.png

Once the VM template is updated you can instantiate it to create a Firecracker microVM.

NginxVM.png

You can access the Firecracker microVM through VNC using the password you set earlier at the template's Custom Vars section:

VNCNginxVM.png

Now you can use your browser to access the nginx application by using the IP of your VM. Voilà! 🤓

NginxWebPage.png

Was this article helpful?
0 out of 0 found this helpful

Comments

0 comments

Please sign in to leave a comment.