JavaScript Integration with Docker & Use cases of JavaScript

  • JavaScript is a scripting language that enables you to create dynamically updating content, control multimedia, animate images, and pretty much everything else. (Okay, not everything, but it is amazing what you can achieve with a few lines of JavaScript code.)
  • Docker is an open platform for developing, shipping, and running applications. Docker enables you to separate your applications from your infrastructure so you can deliver software quickly. With Docker, you can manage your infrastructure in the same ways you manage your applications.
  • By taking advantage of Docker’s methodologies for shipping, testing, and deploying code quickly, you can significantly reduce the delay between writing code and running it in production.
  • First, we have to install and start the ‘Docker’ service in our base OS as:
yum install docker
systemctl start docker
systemctl start httpd
  • Copy or create HTML code in:- /var/www/html/
/var/www/html/
  • Copy or create a CGI file in:- /var/www/cgi-bin/
/var/www/cgi-bin/
chmod +x test.py
  • Now we have to start our HTML code in Google Chrome(Windows) using the IP of VM.
  • We can execute docker commands on this website:
http://192.168.43.245/index.html
  • To check running containers are :-
docker ps
  • To launch a container :-
docker run — name=centos centos
  • To delete docker container use docker rm <container_name>
docker rm centos
  • Check all the list of docker containers docker ps -a
docker ps -a
  • docker images
  • docker run
  • docker rm -f
  • etc.

Use cases of JavaScript

  1. Presentations
  2. Web Development
  3. Server Applications
  4. Web Applications
  5. Games
  6. Mobile Applications
  7. Create Animation

--

--

--

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Random CSS Gradient Generator JavaScript Example and Code

React Qlik Sense Mashups with motor js: Part 1

[Action required] Your RSS.app Trial has Expired — Sat Dec 04 2021

Personal Portfolio Using Angular 8 and Bootstrap

FontAwesome + LaTeX + Mac

The Best Luxury Cars Just BecameAffordable.. https://t.co/Fplr9kOX9T https://t.co/B8ktGvBDkQ

How Recursion Works: The Easy Way

Writer of the Week: Sanjay Priyadarshi

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
amit soni

amit soni

More from Medium

How to Create Zip files with Node.js

Have you heard of Application Frameworks…?

How to use node version manager in Windows ?

How to Setup GitHub “Pages” and Shave Hours Off of Project-Prep