Chef – 06– Simple Package Recipe

package ‘apache2’

service ‘apache2’ do
action [ :enable, :start]

file ‘/var/www/html/index.html’ do
content ‘<html><body><h1>Hello World</h1></body></html>’
#this cookbok downloads apache2 package and start the service then replace the file content with giving content
#you can see the result with

curl localhost


Docker – 06- CMD and ENTRYPOINT


CMD and ENTRYPOINT at Dockerfile

CMD wget -O- -q

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

Build and run

docker build-t getsite .

docker run getsite

if you want to pass the entrypoint parameter with run

docker run -it –entrypoint bash getsite

NodeJS Lesson -1 What is nodejs?


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.