Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Docker related improvements #134

Merged
merged 2 commits into from
Oct 4, 2022
Merged
Show file tree
Hide file tree
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
4 changes: 4 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,8 @@ COPY . ./
RUN go mod download && go mod verify
RUN go build -v -o /vacuum vacuum.go

FROM debian:bullseye-slim
WORKDIR /work
COPY --from=0 /vacuum /

ENTRYPOINT ["/vacuum"]
12 changes: 5 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -141,17 +141,15 @@ vacuum is available as a container, you can pull the image from
docker pull dshanley/vacuum
```

or you can pull it from [Github packages](https://github.com/daveshanley/vacuum/pkgs/container/vacuum).
To run, mount the current working dir to the container and use a relative path to your spec, like so

```
docker pull ghcr.io/daveshanley/vacuum:latest
docker run --rm -v $PWD:/work:ro dshanley/vacuum lint <your-openapi-spec.yaml>
```

To run, just add `docker dshanley/vacuum` as your command, like so

```
docker dshanley/vacuum lint <your-openapi-spec.yaml>
```
Alternatively, you can pull it from
[Github packages](https://github.com/daveshanley/vacuum/pkgs/container/vacuum).
To do that, replace `dshanley/vacuum` with `ghcr.io/daveshanley/vacuum` in the above commands.

## Build an interactive HTML report

Expand Down