To install the client-side scanner:
-
Get a copy of scass-scanner helm chart:
helm repo add https://repo.blackduck.com/cloudnative/ -
Create a new
client-side-scanner.yamlfile to run scanner in client side mode with the following contents:onprem: enabled: true global: environs: SPRING_PROFILES_ACTIVE: "LOCAL" ARTIFACTORY_IDENTITY_TOKEN: "<ARTIFACTORY_USER_IDENTITY_TOKEN>" ARTIFACTORY_URL: "<ARTIFACTORY_URL>" service: type: NodePort nodePort: 30000 healthChecks: enabled: true readinessProbe: failureThreshold: 1 periodSeconds: 1 # Change the replica count based on the customer/user needs # The max supported right now is 10 replicaCount: 10 metrics: enabled: false bdbaworker: enabled: true repository: blackducksoftware autoscaling: enabled: false configurations: - name: onprem maxMemory: "7608m" minMemory: "1024m" signatureScannerMemory: "6144" resources: requests: cpu: 200m memory: 4096Mi limits: cpu: 1000m memory: 10240Mi bdbaworker: resources: requests: cpu: 200m memory: 3072Mi limits: cpu: 1000m memory: 6656MiUpdate the values of
<ARTIFACTORY_USER_IDENTITY_TOKEN>and<ARTIFACTORY_URL>in the created file. -
Create a namespace:
kubectl create ns client-side-scanner -
Do a dry run of the charts to find any pre-installation errors:
helm upgrade --install scass-scanner blackduck/scass-scanner -n client-side-scanner --dry-run -f client-side-scanner.yaml -
Install the charts:
helm upgrade --install scass-scanner blackduck/scass-scanner -n client-side-scanner -f client-side-scanner.yaml -
Check the status of the services:
kubectl get pods -n client-side-scanner
Once completed, the scanner will be up and running on
http://<hostname>:<nodePort> and Artifactory will start
sending scans.