Skip to content

Commit

Permalink
fix env path (#214)
Browse files Browse the repository at this point in the history
  • Loading branch information
grolston authored Aug 8, 2022
1 parent 56f2913 commit 828f505
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ RUN apt-get update && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
RUN curl --proto '=https' --tlsv1.2 -sSf https://raw.githubusercontent.com/aws-cloudformation/cloudformation-guard/main/install-guard.sh | sh
ENV PATH "${PATH}:~/.guard/bin"
ENV PATH "${PATH}:root/.guard/bin"

COPY ./output/ /
8 changes: 4 additions & 4 deletions docs/Using-Guard-Rules-Registry.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,15 +54,15 @@ cfn-guard validate --rules ./NIST800-53Rev4.guard --data myCloudFormation.yml --

All AWS Guard Rule Registry are build into a Docker image with Guard installed. The release rule set files are built and copied into the Docker image allowing for simplified rule set specific. Follow these steps to pull the Docker image and view the available rule sets.

1. run: `docker pull public.ecr.aws/r7q6h7y6/guard:1.0.0`
1. run: `docker pull public.ecr.aws/r7q6h7y6/guard:1.0.1`
2. enter the container to view available rules:
```
docker run -it public.ecr.aws/r7q6h7y6/guard:1.0.0 sh
docker run -it public.ecr.aws/r7q6h7y6/guard:1.0.1 sh
ls
```
3. all rule sets are built into the root directory

> **Note:** The Docker image version identifies the release version. Using the latest tag will give you the latest release.
> **Note:** The Docker image version identifies the release version. Using the `latest` tag will give you the latest release.

## AWS CodePipeline

Expand All @@ -79,7 +79,7 @@ Gitlab-CI can leverage the AWS Guard Rules Registry docker image. The example be
```yml
image:
repository: public.ecr.aws/r7q6h7y6/guard
tag: 1.0.0
tag: 1.0.1
stages:
- ci
Expand Down

0 comments on commit 828f505

Please sign in to comment.