The Nodesource Blog

#shoptalk Subscribe

The N|Solid Docker Images

Today we are rolling out our N|Solid Docker images! Running N|Solid in Docker is now officially supported.

Enterprise-grade

The N|Solid Docker images match the flexibility of Docker with the ability to monitor and analyze node at scale with N|Solid. These images have been developed from the ground up to address Enterprise customer needs. N|Solid consists of several components that scale independently to match deployment requirements. Each component of N|Solid has been given its own Docker Image, allowing users to independently deploy and scale N|Solid within their own infrastructure.

Each image will receive regular security updates to the underlying operating system published directly to the Docker Hub. These images build on our previous work with the NodeSource Node.js Docker Images and utilize the same testing and verification process. Our testing process runs directly on top of the images that we intend to ship to the Docker Hub. Rest assured that the environment contained in these Docker images has been given the NodeSource stamp of approval.

Designed for Developers

In addition to being friendly to enterprise operations teams, the N|Solid Docker Images are designed to be accessible to developers. For those who are already using Docker, these images provide an easy way to get up and running with the N|Solid console.

If you are new to running Node in Docker, check out our guide to Dockerizing your existing Node application.

Get them now!

The Images can now be pulled directly from the Docker Hub!

We have an image for each component of N|Solid for a total of 5 images:

If you have already Dockerized your application and want to try N|Solid, simply change out your FROM line with FROM nodesource/nsolid and rebuild! It is as easy as that. From that point forward, you can then use the nsolid-cli Docker Image to query running N|Solid containers for stats. For example:

$ docker build -t myapp . # build your App on top of the N|Solid base image
$ docker network create nsolid # create a shared network for your containers
$ docker run -d --rm --name myapp --net nsolid -e 'NSOLID_SOCKET=4000' myapp # Run your app
$ docker run -it --net nsolid --rm nodesource/nsolid-cli --socket myapp:4000 process_stats # Query your app
{"uptime":72.473,"rss":25489408,"heapTotal":10504544,"heapUsed":5926272,"totalHeapSizeExecutable":5242880,"totalPhysicalSize":7171928,"totalAvailableSize":1490894552,"heapSizeLimit":1535115264,"active_requests":1,"active_handles":3,"title":"nsolid","cpu":0}

Once you have you application running in a N|Solid Docker image, the next step is to start exploring the production monitoring and performance analysis capabilities by standing up an instance of the Console. For local development environments, we’ve built a docker-compose.yml file to make it simple to get up and running with the Console in Docker.

Check out our documentation to get started using N|Solid with Docker today!

PS: NodeSource and Open Source

Our build process, Dockerfiles, and logs are available on GitHub!