Skip to content
This repository has been archived by the owner on Jan 5, 2023. It is now read-only.

Update README.md #221

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 8 additions & 15 deletions _data/opencontrol/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,21 +7,14 @@ The goal is supporting compliance-as-code practices beginning with managing reus
## Install using Docker

```sh
git clone https://github.com/GovReady/hyperGRC.git hypergrc
cd hypergrc
docker image pull centos:7
docker image build --tag hypergrc:latest .
```

Next you will start a container using the image. When running the container, you will need to

* Provide the container with access to an OpenControl repository on your workstation by mounting a volume using the docker `-v` option. The workstation path must be an [absolute directory](https://docs.docker.com/engine/reference/run/#volume-shared-filesystems), and the container path must be `/opencontrol`. In the example start command below, we use `` `pwd` `` to help form the absolute path to the example OpenControl data in this repository, but you can just set `REPOSITORY` to any absolute path.
* Map a port on your workstation to the container using the Docker `-p` option, such as `-p 127.0.0.1:8000:8000`.
* Start hyperGRC in ephemeral `--rm` and interactive mode `-it` so that you can end it by typing CTRL+C.

```sh
REPOSITORY=`pwd`/example/agencyapp
docker container run -v $REPOSITORY:/opencontrol -p 127.0.0.1:8000:8000 --rm -it hypergrc:latest
$ git clone https://github.com/GSA/datagov-ckan-multi
$ cd _data/opencontrol
$ git clone https://github.com/GovReady/hyperGRC.git hypergrc
$ cd hypergrc
$ docker image build --tag hypergrc:latest .
$ cd ..
$ export REPOSITORY=`pwd`
$ docker container run -v $REPOSITORY:/opencontrol -p 127.0.0.1:8000:8000 --rm -it hypergrc:latest
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this can be simplified to:

$ npm install
$ npm run edit-controls

The npm postinstall script runs install-edit-controls which does the repo clone and docker build. postinstall is run automatically from npm install. npm run edit-controls then runs the edit-controls script which starts the docker container, so that should be it!

```

The visit hyperGRC at `http://127.0.0.1:8000`.
Expand Down