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

Etermax at QCon San Francisco 2018

Weekly update from PointPay (June 28 — July 2, 2021)

How we used apache as a reverse proxy?

Amazon CloudWatch Integration with Pagerduty

Introduction to Java Programming Language.

Automating Burp Suite -4 | Understanding And Customising Custom Header From Response Via Burp Macro…

JuiceFS v0.16 is released, supporting TiKV metadata engine!

5 Recommended Tools for Developing Smartphone Apps

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

Docker for devs with hands-on| Part-3

How to debug a docker image.

Authentication vs Authorization

How to generate a JWT signing keys