Skip to content

A simple Calculator project that is built using the DevOPs pipeline.

Notifications You must be signed in to change notification settings

SEETHAMRAJU/calculator

Repository files navigation

README for Calculator

This a simple terminal version of the calculator.

Build Image

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>

Direct Usage

To use the docker image directly follow the below commands

    docker pull byterider/cal:<tagnumber>
    docker run -e MODE="<mode>" -it byterider/cal:<tagnumber>
    

Arguments and Environments

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>

About

A simple Calculator project that is built using the DevOPs pipeline.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published