Use local files as input in Docker

A formula can be given a path to a file to be read and used within the formula, doing this locally, there is no problem but when using Docker, you would need to use volumes or something like that.

I created a repository on GitHub to illustrate the problem, due to forum guidelines, I won’t paste the link, to get to this repository:

  • Username: afonsofilhozup
  • Repository: ritchie-formulas-docker-issues

To reproduce the problem:

  1. Add the repository in Ritchie
  2. Run the formula: rit docker-issues use volume --docker

This formula tries to read a text file that is passed as input and show it in the terminal, it works locally, not in Docker.