Skip to content

Commit

Permalink
Update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
ramanan-ravi committed Apr 15, 2024
1 parent 107230c commit 8982f86
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 12 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,11 @@ package-scanner: vendor $(PWD)/**/*.go $(PWD)/agent-plugins-grpc/**/*.go

.PHONY: docker
docker:
docker build -t deepfenceio/deepfence_package_scanner:latest .
docker build -t quay.io/deepfenceio/deepfence_package_scanner:2.2.0 .

.PHONY: docker-multi-arch
docker-multi-arch:
docker buildx build --platform linux/arm64,linux/amd64 --tag deepfenceio/deepfence_package_scanner:latest .
docker buildx build --platform linux/arm64,linux/amd64 --tag quay.io/deepfenceio/deepfence_package_scanner:2.2.0 .

.PHONY: buildx
buildx:
Expand Down
17 changes: 7 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,9 @@ Scan for vulnerabilities in your docker image or a directory

## Download

Every [release](https://github.com/deepfence/package-scanner/releases/tag/v2.0.1) of package scanner provides binary releases for a variety of OSes. These binary versions can be manually downloaded and installed.
Every [release](https://github.com/deepfence/package-scanner/releases) of package scanner provides binary releases for a variety of OSes. These binary versions can be manually downloaded and installed.

1. Download your [desired](https://github.com/deepfence/package-scanner/releases/tag/v2.0.1) version
```shell
wget https://github.com/deepfence/package-scanner/releases/download/v2.0.1/package-scanner_Linux_x86_64.tar
```
1. Go to the [releases](https://github.com/deepfence/package-scanner/releases) page and download the native client package based on your OS and CPU architecture.
2. Unpack it
```shell
tar -zxvf package-scanner_Linux_x86_64.tar
Expand Down Expand Up @@ -55,15 +52,15 @@ drwxr-xr-x 2 root root 4.0K Dec 29 09:40 package-scanner_linux_arm64
## Build docker image
1. make tools
2. make docker
3. docker images should show new image with name deepfenceio/deepfence_package_scanner:latest
3. docker images should show new image with name quay.io/deepfenceio/deepfence_package_scanner_ce:2.2.0
```
$ docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
deepfenceio/deepfence_package_scanner latest e06fb1cd3868 About an hour ago 569MB
nginx latest 1403e55ab369 8 days ago 142MB
REPOSITORY TAG IMAGE ID CREATED SIZE
quay.io/deepfenceio/deepfence_package_scanner 2.2.0 e06fb1cd3868 About an hour ago 569MB
nginx latest 1403e55ab369 8 days ago 142MB
```
## Docker image standalone usage example
```
docker run -it --rm -v /var/run/docker.sock:/var/run/docker.sock deepfenceio/deepfence_package_scanner:latest package-scanner -source nginx:latest
docker run -it --rm -v /var/run/docker.sock:/var/run/docker.sock quay.io/deepfenceio/deepfence_package_scanner_ce:2.2.0 package-scanner -source nginx:latest
```

0 comments on commit 8982f86

Please sign in to comment.