carpentries / styles

Styles for The Carpentries lessons. No README to avoid merge conflicts with lessons. Demo 👇
https://carpentries.github.io/lesson-example
Other
84 stars 94 forks source link

Makefile: docker-serve target: ensure Docker is installed #608

Closed maxim-belkin closed 3 years ago

maxim-belkin commented 3 years ago

Ensure that Docker is installed prior to executing the docker-serve target. Emit a clear message in case Docker is not available.

Before

$ make docker-serve
make: docker: No such file or directory
make: *** [docker-serve] Error 1

After

$ make docker-serve
Makefile:57: *** Your system does not appear to have Docker installed.  Stop.
maxim-belkin commented 3 years ago

I updated implementation from 507cdad to f7e6c1a because, unlike Python which is required by several targets, Docker is required by docker-serve only, so we can check that Docker is installed inside the docker-serve target only.