mumshad mumshad - 1 month ago 17
Node.js Question

Ship docker as a vApp

I have developed an application and am using docker to build it. I would like to ship it as a VMware vAPP. What are my options? How do I ship it so customer can deploy it in their VMware environment?

Also I am using a base Ubuntu image and installed NodeJS, MongoDB and other dependencies on it. But I would like to configure my NodeJS based application and MongoDB database as a service within the package I intend to ship. I know how to configure these as a service using init.d on a normal VM. How do I go about this in Docker? Should I have my init.d files in my application folder and copy them over to Docker container during build? Or are there better ways?

Is this the right use case for docker? Am I doing it right?

Appreciate any advise.

Answer

VMware vApps usually made of multiple VMs running to provide a service. They may have start up dependencies and etc.

Now Using docker you can have those VMs as containers running on a single docker host VM. So a single VM removes the need for vAPP.

On the other hand containerizing philosophy requires us to use Microservices. short explanation in your case, putting each service in a separate container. Then write up a docker compose file to bring the containers up and put it in start up. After that you can make an OVF of your docker host VM and ship it.

A better way in my opinion is to create docker images, put them in your repository and let the customers pull them. Then provide docker compose file for them.