Skip to content

Latest commit

 

History

History
26 lines (18 loc) · 741 Bytes

README.md

File metadata and controls

26 lines (18 loc) · 741 Bytes

docker-tutorial

Code that goes with the mlibrary Getting Started with Docker and Docker Compose tutorial

Set up

Run the setup script

./init.sh

This will:

  • copy env.example to .env
  • enable the precommit hook which wil lint the code before committing. Uncomment those lines in .git/hooks/precommit to enable running tests.
  • build the docker image
  • install the gems

The script does not overwrite .env or /git/hooks/precommit.

Tests

This has rspec initialialized and has one sample test in spec/sample_spec.rb.

A github actions workflow is included that runs standard linting and the tests