Containerized version of hub_load package provied by OPS team (joel) Generates large anounts of HUB projects with versions and components.
Container is available from gcr.io
docker pull gcr.io/gke-verification/github-blackducksoftware-hub-load:master
Container will look for the following environment variables. Default values could be overriden as necessary
Variable Default Value
--------------------- -------------
BD_HUB
BD_HUB_PORT 443
BD_HUB_USER sysadmin
BD_HUB_PASS blackduck
MAX_SCANS 10
MAX_CODELOCATIONS 1
MAX_COMPONENTS 100
MAX_VERSIONS 20
Submitting scans with default parameters to . testhub.blackducksoftware.com
$ docker run --rm -e BD_HUB=testhub.blackducksoftware.com \
gcr.io/gke-verification/github-blackducksoftware-hub-load:master \
/home/hub_load/submit_scans.sh
Submitting scans overriding default parameters
$ docker run --rm -e BD_HUB=testhub.blackducksoftware.com \
-e MAX_SCANS=1 \
-e BD_HUB_USER=hubuser \
-e BD_HUB_PASS=password
gcr.io/gke-verification/github-blackducksoftware-hub-load:master \
/home/hub_load/submit_scans.sh
Processing defaults
Submitting with the following parameters:
BD_HUB ip-172-31-8-206.ec2.internal
BD_HUB_USER username
BD_HUB_PASS password
MAX_SCANS 1
MAX_CODELOCATIONS 1
MAX_COMPONENTS 100
MAX_VERSIONS 20
Starting ...
...
...
Total scans submitted: 1
$
$ docker run -it --rm -e BD_HUB=testhub.blackducksoftware.com \
-e MAX_SCANS=1 \
-e BD_HUB_USER=hubuser \
-e BD_HUB_PASS=password \
gcr.io/gke-verification/github-blackducksoftware-hub-load:master
root@714cf6d9a957:/# INTERACTIVE=yes /home/hub_load/submit_scans.sh
Processing defaults
Enter value for BD_HUB [testhub.blackducksoftware.com]
Enter value for BD_HUB_USER [hubuser] sysadmin
Enter value for BD_HUB_PASS [Ch@ngeIt] blackduck
Enter value for MAX_SCANS [1]
Enter value for MAX_CODELOCATIONS [1]
Enter value for MAX_COMPONENTS [100]
Enter value for MAX_VERSIONS [20]
Submitting with the following parameters:
BD_HUB testhub.blackducksoftware.com
BD_HUB_USER sysadmin
BD_HUB_PASS blackduck
MAX_SCANS 1
MAX_CODELOCATIONS 1
MAX_COMPONENTS 100
MAX_VERSIONS 20
Enter value for continue [Y]
Starting ...
...
git clone https://github.com/blackducksoftware/hub-load.git
cd hub-load/src
docker build -t <container tag> .
Note: Build process will download archives listed in hub-load/src/packagelist. This will result in a container ~5GB in size.