Enable an Image to Be Parameterized in Docker

Create a .js file var radius = process.env.diameter / 2; var area = Math.pow(radius, 2) * Math.PI; console.log( `Area of a ${radius} cm radius disk: ${area} cm²` ); Create a file named Dockerfile and add the following code to it: FROM node:11-alpine ENV diameter=4.0 COPY compute.js . CMD node compute.js Open a command-line. Change the …

How to configure Maven PATH and use mvn on Windows command line

Right click on My Computer >> Properties >> Advanced system settings >> System Properties window will get displayed Under Advanced >> Environment Variables Click on New to set Environment Variables Variable name: JAVA_HOME Variable value: C:\Program Files\Java\jdk1.8.0_121 Variable name: M2 Variable value: %M2_HOME%\bin Variable name: M2_HOME Variable value: C:\Program Files\Apache Software Foundation\apache-maven-3.5.0 Variable name: Path …