Skip to content

Commit

Permalink
Add Dockerfile and Docs
Browse files Browse the repository at this point in the history
  • Loading branch information
RoseSecurity committed May 21, 2024
1 parent c3f54f9 commit f14c42d
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 1 deletion.
12 changes: 12 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
FROM golang:1.22

WORKDIR /usr/src/terramaid

COPY go.mod go.sum ./
RUN go mod download && go mod verify

COPY . .
RUN go build -v -o /usr/local/bin/terramaid main.go

ENTRYPOINT ["/usr/local/bin/terramaid"]
CMD ["default_arg"]
10 changes: 9 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,15 @@ terramaid -planfile tf_plan_prod.json
cat Terramaid.md
```

Output:
### Docker Image

Run the following command to utilize the Terramaid Docker image:

```sh
docker run -it -v $(pwd):/usr/src/terramaid rosesecurity/terramaid:latest -planfile tfplan.json
```

**Output:**

```mermaid
graph TD;
Expand Down

0 comments on commit f14c42d

Please sign in to comment.