-
Python Modules
-
External CI Server: CircleCI
-
clone the repository:
git clone https://github.com/cv47522/python-calculator && cd python-calculator
-
run
make
for automatic CI checking and docker image building -
run the built image:
docker run --rm calculator
will output45
whose command is defined in the Dockerfile (CMD ["python", "calculator.py", "multiply", "5", "9"]
) -
or access the built image in the interactive mode and run the custom functions:
docker run -it calculator sh
/usr/src/app \# python calculator.py add 7 8
# 15
/usr/src/app \# python calculator.py subtract 7 8
# -1
/usr/src/app \# python calculator.py multiply 7 8
# 56
/usr/src/app \# exit