This a simple terminal version of the calculator.
To build the docker image clone the repo and follow the comamnds below Make your changes
mvn clean install
docker build -t <tagname>
docker run -e MODE="<mode>" -it <tagname>
To use the docker image directly follow the below commands
docker pull byterider/cal:<tagnumber>
docker run -e MODE="<mode>" -it byterider/cal:<tagnumber>
tagnumber: tag number of the docker image can be used. For latest tagnumber check the registry .
mode: This is basically the environment: "DEV", "PROD".
For "DEVE" environment the docker image will automatically take the input from the input.txt and runthe app. (No need of manual intervention)
Hence we can use
docker run -e MODE="DEVE" byterider/cal:<tagnumber>
For "PROD" environment the docker image is interactive. Here it changes as
docker run -e MODE="PROD" -it byterider/cal:<tagnumber>