GovReady / hyperGRC

hyperGRC is a lightweight, in-browser tool for managing compliance-as-code repositories in OpenControl format.
GNU General Public License v3.0
22 stars 9 forks source link

Docker image does not run, even when opencontrol directory present #12

Open shawndwells opened 5 years ago

shawndwells commented 5 years ago
$ ls -l $REPOSITORY/opencontrol
total 336
-rw-r--r--  1 shawn  staff  169840 Mar 11 19:21 opencontrol.yaml

$ docker container run -v $REPOSITORY:/opencontrol -p 127.0.0.1:8000:8000 --rm -it hypergrc:latest 
hyperGRC failed to start:
Path `/opencontrol` to Compliance as Code repository does not contain a file named opencontrol.yaml.

At first I thought the $REPOSITORY variable wasn't being expanded since the CLI has Path '/opencontrol' and not the full path. Same error when specifying the full path on the CLI:

docker container run -v /Users/shawn/Documents/src/GovReady/hyperGRC/agencyapp/opencontrol -p 127.0.0.1:8000:8000 --rm -it hypergrc:latest
hyperGRC failed to start:
Path `/opencontrol` to Compliance as Code repository was not found.