Skip to content

Commit

Permalink
added some lines to the end of base-rebuild to auto update the Readme…
Browse files Browse the repository at this point in the history
….md with current version info.
  • Loading branch information
immauss committed Mar 20, 2024
1 parent 622da9e commit 47e8db7
Show file tree
Hide file tree
Showing 4 changed files with 69 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,4 @@ gsa-final
certs.tar.xz
ver.current
gvm-tools
*.xz
4 changes: 2 additions & 2 deletions Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ For docs on the web interface and scanning, use Greenbone's docs [here](https://
# Docker Tags #
tag | Description
----------------|-------------------------------------------------------------------
22.4.40 | This is the latest based on GVMd 23.0 available on x86_64, arm64, and armv7.
22.4.42 | This is the latest based on GVMd 23 available on x86_64 and arm64.
21.04.09 | This is the last 21.4 build.
20.08.04.6 | The last 20.08 image
pre-20.08 | This is the last image from before the 20.08 update.
Expand All @@ -41,7 +41,7 @@ Component | Version | | Component | Version
| gsad | v22.9.1 | | ospd | v21.4.4 |
| ospd_openvas | v22.7.0 | | pg_gvm | v22.6.5 |
| python_gvm | v24.3.0 | | gvm_tools | v24.3.0 |
- - - -
| greenbone_feed_sync | v24.3.0 |

# 25 August 2023 #
## Discussions!!! ##
Expand Down
16 changes: 16 additions & 0 deletions bin/base-rebuild.sh
Original file line number Diff line number Diff line change
Expand Up @@ -209,3 +209,19 @@ if [ $RUNAFTER -eq 1 ]; then
docker run -d --name $tag -e SKIPSYNC=true -p 8080:9392 $RUNOPTIONS immauss/openvas:$tag
docker logs -f $tag
fi

# Update the versions in the Readme.md
if [ "$PUSH" != " " ]; then
# Readme Template
READMETMP="templ.readme"
# Current GB Versions
VERSIONS="versions.md"
# Use Perl for editing
perl -0777 -pe "{
open(my \$fh, '<', '${VERSIONS}');
local \$/;
\$replacement = <\$fh>;
s/XXXXXXXXXXXXX/\$replacement/g;
}" "${READMETMP}" > Readme.md
sed -i "s/XYXYXYXYXYX/$(cat ver.current)/" Readme.md
fi
50 changes: 50 additions & 0 deletions templ.readme
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
[![Docker Pulls](https://img.shields.io/docker/pulls/immauss/openvas.svg)](https://hub.docker.com/r/immauss/openvas/)
[![Docker Stars](https://img.shields.io/docker/stars/immauss/openvas?style=flat)](https://hub.docker.com/r/immauss/openvas/)
[![Docker Stars](https://img.shields.io/docker/image-size/immauss/openvas.svg?maxAge=2592000)](https://hub.docker.com/r/immauss/openvas/)
[![GitHub Issues](https://img.shields.io/github/issues-raw/immauss/openvas.svg)](https://github.com/immauss/openvas/issues)
[![Discord](https://img.shields.io/discord/809911669634498596?label=Discord&logo=discord)](https://discord.gg/DtGpGFf7zV)
[![Twitter Badge](https://badgen.net/badge/icon/twitter?icon=twitter&label)](https://twitter.com/immauss)
![GitHub Repo stars](https://img.shields.io/github/stars/immauss/openvas?style=social)

# A Greenbone Vulnerability Management docker image
### Brought to you by ###
[![Immauss Cybersecurity](https://github.com/immauss/openvas/raw/master/images/ics-hz.png)](https://www.immauss.com "Immauss Cybersecurity")

[Sponsor immauss on GitHub](https://github.com/sponsors/immauss)
OR
[Sponsor by PayPal](https:/www.immauss.com/container_subscriptions)

## Current Silver Sponsors ##
[![NOS Informatica](https://raw.githubusercontent.com/immauss/openvas/master/images/NOSinformatica.png)](https://nosinformatica.com/ "NOS Informatica")
- - - -
## Documentation ##
The current container docs are maintained on github [here](https://immauss.github.io/openvas/)

For docs on the web interface and scanning, use Greenbone's docs [here](https://docs.greenbone.net/GSM-Manual/gos-22.04/en/). Chapter's 8-14 cover the bits you'll need.
- - - -

# Docker Tags #
tag | Description
----------------|-------------------------------------------------------------------
XYXYXYXYXYX | This is the latest based on GVMd 23 available on x86_64 and arm64.
21.04.09 | This is the last 21.4 build.
20.08.04.6 | The last 20.08 image
pre-20.08 | This is the last image from before the 20.08 update.
v1.0 | old out of date image for posterity. (Dont` use this one. . . . ever)

XXXXXXXXXXXXX

# 25 August 2023 #
## Discussions!!! ##

Moving forward, all new versions and any other changes will be posted in the [Announcements](https://github.com/immauss/openvas/discussions). The contents of this Readme will be preserved as [OldReadme.md](https://github.com/immauss/openvas/OldReadme.md).

Thanks,
Scott

- - - -




For License info, see the [GNU Affero](https://github.com/immauss/openvas/blob/master/LICENSE) license.

0 comments on commit 47e8db7

Please sign in to comment.