collector-harbor

command module
v0.2.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 26, 2021 License: Apache-2.0 Imports: 13 Imported by: 0

README

collector-harbor

codecov

Running Harbor locally

Follow along this blog to setup Harbor locally using Docker Desktop and Helm.

You can then navigate to https://core.harbor.domain/harbor to access the console. The default admin credentials are:

username: admin
password: Harbor12345

Configure Webhook & Vulnerability Scanning in Harbor

Webhook

Vulnerability Scanning

  • Select the 'Configuration' section for the library project
  • Select "Automatically scan images on push" from Vulnerability scanning

Read more about how to setup Webhooks for projects here.

Running Rode locally

Build the Rode image:

git clone https://github.com/rode/rode.git && cd rode
docker build -t rode .

If you're running the Kind cluster, use the kind load:

kind load docker-image rode

Deploy rode locally using Helm:

helm install rode helm/rode/. --set=image.repository=rode --set=image.tag=latest

Running Harbor Collector locally

Build the Harbor Collector:

git clone https://github.com/rode/charts.git && cd charts
docker build -t rode-collector-harbor .

If you're running the Kind cluster, use the kind load:

kind load docker-image rode-collector-harbor

Deploy the Harbor Collector:

helm install rode-collector-harbor charts/rode-collector-harbor --set=image.repository=rode-collector-harbor --set=image.tag=latest

Watch the pod logs:

export POD_NAME=$(kubectl get pods --namespace default -l "app.kubernetes.io/name=rode-collector-harbor,app.kubernetes.io/instance=rode-collector-harbor" -o jsonpath="{.items[0].metadata.name}")
kubectl logs $POD_NAME

Pushing an image to Harbor

Heres an example of pushing the nginx image to the default library project:

docker pull nginx:stable-alpine
docker tag nginx:stable-alpine core.harbor.domain/library/nginx:stable-alpine
docker push core.harbor.domain/library/nginx:stable-alpine

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
harborfakes
Code generated by counterfeiter.
Code generated by counterfeiter.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL