May 2016
Beginner to intermediate
352 pages
7h 12m
English
This section gives a brief overview of deploying a Docker containerized Node.js application on Mesos using Marathon. This requires you to have Docker and fig already installed on the machine. Let's follow the steps listed next to carry out the deployment:
App.js to print Hello World, a simple hello world Node.js program.var http = require('http'); // Configure our HTTP server to respond with Hello World to all requests. var server = http.createServer(function (request, response) { response.writeHead(200, {"Content-Type": "text/plain"}); response.end("Hello World "); }); // Listen on port 8000, IP defaults ...Read now
Unlock full access