Sneak view into Docker for Web devs | Part-2

  • First Container runs on the port 80 hosted on Tomcat-7 and JDK 1.7.
  • Second Container runs on the port 80 hosted on Tomcat-8 and JDK 1.8.
Build-Ship-Run flow diagram
  • A developer will develop an image & put it into a repository.
  • A QA engineer would get the image and deploy it into the respective QA environment.
  • Post QA signoff, devops engineer would get the image and deploy it to production.
  • It means that, we want to download the “nginx ”Docker-Image with version as 1.14.
  • We can label to this image with our team or individual name.
  • We have also modified the configuration file and the same shall be put into the container’s specified directory-structure, once the container would come up.
  • We also copy the website/ folder structure into the directory “/usr/share/nginx/html/static-website” of container.
Launched first Container from Image.
Launched second Container from Image.
Displays all containers that we have currently.
Yay ! our website is accessible from within the freshly launched container now.

--

--

--

Software Engineer for Big Data distributed systems

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

Recommended from Medium

X-Men Mutable and Human Immutable

Should you believe the hype on new IT trends?

Staked solUST

Apple Music Player — Library Screen

Dataframe, Converting Some Columns to Rows and Some Rows to Columns

What happens when you type a URL in your browser and press enter?

Tutorial Fuzzy Logic Mamdani for Arduino

Tutorial Fuzzy Logic Mamdani for Arduino

Ensuring Drupal route lookups by path are cached by domain

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
aditya goel

aditya goel

Software Engineer for Big Data distributed systems

More from Medium

Sneak view into Docker for devs| Part-2

Retrieve Docker-deployed files/source code on EC2

Configure Web Server on AWS Cloud

Cara Install Let’s Encrypt dengan Apache di Ubuntu 20.04 / Debian 11 / Linux Mint

Cara Install Let's Encrypt dengan Apache di Ubuntu 20.04 / Debian 11 / Linux Mint