Skip to content

Commit

Permalink
Merge #262
Browse files Browse the repository at this point in the history
262: Add instructions for running with Docker and modify Dockerfile to make command more intuitive r=zegl a=patrickgardella

Based on your comments in [issue 203](#203), I modified the Dockerfile to make the /project directory the WORKDIR so the user didn't have to prepend the yaml files to be tested with /project.

Additionally, I added a note in the README to show how to use kube-score from Docker

<!--
    Optional: Add this change to the release notes by adding a RELNOTE comment
    If this shouldn't appear in the notes, simply remove this.
-->

```
RELNOTE: Modify Dockerfile to add WORKDIR and add instructions to README.md for how to run kube-score using Docker
```


Co-authored-by: Patrick Gardella <[email protected]>
  • Loading branch information
bors[bot] and pgardella-globant committed Jun 10, 2020
2 parents 302f3ed + ff4e2ea commit 69c5e99
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,12 @@ kubectl api-resources --verbs=list --namespaced -o name \
| kube-score score -
```

### Example with Docker

```bash
docker run -v $(pwd):/project zegl/kube-score:v1.7.0 score my-app/*.yaml
```

## Configuration

```
Expand Down
1 change: 1 addition & 0 deletions cmd/kube-score/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
FROM scratch
COPY kube-score /
WORKDIR /project
ENTRYPOINT ["/kube-score"]

0 comments on commit 69c5e99

Please sign in to comment.