Docker – 06- CMD and ENTRYPOINT

large_v-trans

CMD and ENTRYPOINT at Dockerfile

CMD wget -O- -q http://google.com

and we can add the entrypoint for parameter

ENTRYPOINT [“wget”,”-O-“,”-q”]

if we want to set default parameters we must be use entrypoint and cmd together

ENTRYPOINT [“wget”,”-O-“,”-q”]

CMD wget -O- -q http://google.com

Build and run

docker build-t getsite .

docker run getsite http://facebook.com

if you want to pass the entrypoint parameter with run

docker run -it –entrypoint bash getsite

NodeJS Lesson -1 What is nodejs?

nodejs-logo

Node.js is an open source, cross-platform runtime environment for server-side and networking applications. Node.js applications are written in JavaScript, and can be run within the Node.js runtime on OS X, Microsoft Windows, Linux, FreeBSD, NonStop and IBM i.

Node.js provides an event-driven architecture and a non-blocking I/O API that optimizes an application’s throughput and scalability. These technologies are commonly used for real-time web applications.

Node.js uses the Google V8 JavaScript engine to execute code, and a large percentage of the basic modules are written in JavaScript. Node.js contains a built-in library to allow applications to act as a Web server without software such as Apache HTTP Server or IIS.

Node.js is gaining adoption as a server-side platform and is used by Microsoft,Yahoo!, Walmart,Groupon,SAP,LinkedIn,] Rakuten, PayPal, Voxer, and GoDaddy.