Skip to content

Commit

Permalink
build: release 7.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremylong committed Oct 27, 2024
1 parent 4ac0b45 commit ffa590f
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1 +1 @@
version = 7.0.0
version = 7.0.1
4 changes: 2 additions & 2 deletions open-vulnerability-clients/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,14 +39,14 @@ See API usage examples in the [open-vulnerability-store](https://github.com/jere
<dependency>
<groupId>io.github.jeremylong</groupId>
<artifactId>open-vulnerability-clients</artifactId>
<version>7.0.0</version>
<version>7.0.1</version>
</dependency>
```

### gradle

```groovy
implementation 'io.github.jeremylong:open-vulnerability-clients:7.0.0'
implementation 'io.github.jeremylong:open-vulnerability-clients:7.0.1'
```

### api usage
Expand Down
22 changes: 11 additions & 11 deletions vulnz/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ After running `install` you may need to restart your shell for the completion to
```bash
./gradlew vulnz:build
cd vulnz/build/libs
./vulnz-7.0.0.jar install
./vulnz-7.0.1.jar install
vulnz cve --cveId CVE-2021-44228 --prettyPrint
```

Expand Down Expand Up @@ -76,7 +76,7 @@ export JAVA_OPTS="-Xmx2g"
Alternatively, run the CLI using the `-Xmx2g` argument:

```bash
java -Xmx2g -jar ./vulnz-7.0.0.jar
java -Xmx2g -jar ./vulnz-7.0.1.jar
```

### Creating the Cache
Expand All @@ -91,7 +91,7 @@ vulnz cve --cache --directory ./cache
Alternatively, without using the above install command:

```bash
./vulnz-7.0.0.jar cve --cache --directory ./cache
./vulnz-7.0.1.jar cve --cache --directory ./cache
```

When creating the cache all other arguments to the vulnz cli
Expand All @@ -112,16 +112,16 @@ There are a couple of ENV vars

```bash
# replace the NVD_API_KEY with your NVD api key
docker run --name vulnz -e NVD_API_KEY=myapikey jeremylong/open-vulnerability-data-mirror:v7.0.0
docker run --name vulnz -e NVD_API_KEY=myapikey jeremylong/open-vulnerability-data-mirror:v7.0.1

# if you like use a volume
docker run --name vulnz -e NVD_API_KEY=myapikey -v cache:/usr/local/apache2/htdocs jeremylong/open-vulnerability-data-mirror:7.0.0
docker run --name vulnz -e NVD_API_KEY=myapikey -v cache:/usr/local/apache2/htdocs jeremylong/open-vulnerability-data-mirror:7.0.1

# adjust the memory usage
docker run --name vulnz -e JAVA_OPT=-Xmx2g jeremylong/open-vulnerability-data-mirror:v7.0.0
docker run --name vulnz -e JAVA_OPT=-Xmx2g jeremylong/open-vulnerability-data-mirror:v7.0.1

# you can also adjust the delay
docker run --name vulnz -e NVD_API_KEY=myapikey -e DELAY=3000 jeremylong/open-vulnerability-data-mirror:v7.0.0
docker run --name vulnz -e NVD_API_KEY=myapikey -e DELAY=3000 jeremylong/open-vulnerability-data-mirror:v7.0.1

```

Expand All @@ -133,10 +133,10 @@ docker exec -u mirror vulnz /mirror.sh

### Build

Assuming the current version is `7.0.0`
Assuming the current version is `7.0.1`

```bash
export TARGET_VERSION=7.0.0
export TARGET_VERSION=7.0.1
./gradlew vulnz:build -Pversion=$TARGET_VERSION
docker build vulnz/ -t ghcr.io/jeremylong/vulnz:$TARGET_VERSION --build-arg BUILD_VERSION=$TARGET_VERSION
```
Expand All @@ -145,7 +145,7 @@ docker build vulnz/ -t ghcr.io/jeremylong/vulnz:$TARGET_VERSION --build-arg BUIL

```bash
# checkout the repo
git tag vulnz/7.0.0
git tag vulnz/7.0.1
git push --tags
# this will build vulnz 7.0.0 on publish the docker image tagged 7.0.0
# this will build vulnz 7.0.1 on publish the docker image tagged 7.0.1
```

0 comments on commit ffa590f

Please sign in to comment.