Ruby console app + Docker
Algorithm solves task of breakdown needed product quantity into packs.
-
Install docker
-
Install docker-compose https://docs.docker.com/compose/install/
-
Login/Signup into docker
docker login
-
Open shell with the project folder
-
Build image
docker-compose build
-
Run docker container, script will run immediately
docker-compose run shell
-
Input required quantity of a product and it's code
13 CF
-
If the product code is correct and quantity can be split in packages you will see correct result
-
If the input is incorrect in some way you will see an error message
docker-compose run shell rspec docker-compose run shell rubocop docker-compose run shell sh docker container prune