charlotte-ruby / image_scraper

simple utility that pulls image URLs from a web page
MIT License
21 stars 10 forks source link

Dockerize app #22

Closed invalidusrname closed 4 years ago

invalidusrname commented 4 years ago

This will add the ability to run in a docker container:

Usage

$ docker-compose build
$ docker-compose run app
root@bf908f1b8443:/usr/src/app# bundle exec rspec
...
...
Finished in 1.618133572 seconds.
----------------------------------------------------------------------------------------------------------------------------------------------------------
17 tests, 33 assertions, 0 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications
100% passed
----------------------------------------------------------------------------------------------------------------------------------------------------------
10.51 tests/s, 20.39 assertions/s

Or you can just run the test suite this way:

docker-compose run app rspec

...
Finished in 1.711904832 seconds.
----------------------------------------------------------------------------------------------------------------------------------------------------------
17 tests, 33 assertions, 0 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications
100% passed
----------------------------------------------------------------------------------------------------------------------------------------------------------
9.93 tests/s, 19.28 assertions/s