Image taken from https://itnext.io/upgrading-bash-on-macos-7138bd1066ba

1. Source command

Sample


Image taken from https://foxutech.com/how-to-build-a-docker-image-using-dockerfile/
FROM nginx:1.17.1-alpineCOPY nginx.conf /etc/nginx/nginx.confCOPY /dist/my-app /usr/share/nginx/html
> ng build --prod


Image from Google Search
class Vicky {

public static void main(String[] args) {
System.out.println("Hello World!");
}
}
> javac Vicky.java (creates Vicky.class file)> java Vicky"Hello World !"
> java Vicky.java"Hello World !"


Image credits — extremetech.com

Here is an live example (From Flipkart)


Image from https://codingrabbithole.com/set-up-mysql-in-docker-with-docker-compose/

docker-compose.yaml

Things to note


Choose the name & where the script has to get created. In above image, idea is the script name
> cd <SOURCE_CODE_FOLDER>// If the project is Maven> idea pom.xml// If the project is Gradle> idea build.gradle


User & UserController class


Github + Azure DevOps Pipeline + Tomcat + Azure App Service

Creating an Azure App Service


Containerize your SpringBoot application in no time…

Wait ! How come a Java Web Application can run without deploying in an Application Server like Tomcat/Jetty ?


Deploy from DockerImage Azure Container Registry to Azure App Service

Steps

Lets create a new CD pipeline

Vicky AV

Twitter @IamVickyAV

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