Skip to content

Commit

Permalink
local-dev: clair: update default dev config
Browse files Browse the repository at this point in the history
Signed-off-by: Hank Donnay <hdonnay@redhat.com>
  • Loading branch information
hdonnay committed Nov 11, 2021
1 parent 96bad4f commit 0fd1120
Show file tree
Hide file tree
Showing 3 changed files with 49 additions and 25 deletions.
1 change: 1 addition & 0 deletions local-dev/clair/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
quay.yaml
61 changes: 36 additions & 25 deletions local-dev/clair/config.yaml
Original file line number Diff line number Diff line change
@@ -1,46 +1,57 @@
---
log_level: debug-color
introspection_addr: ""
http_listen_addr: ":6000"
updaters: {}
introspection_addr: ":8089"
http_listen_addr: ":6060"
updaters:
sets:
- ubuntu
- debian
- rhel
- alpine
auth:
psk:
key: 'c2VjcmV0'
iss:
- quay
- clairctl
indexer:
connstring: host=clair-db port=5432 user=clair dbname=clair sslmode=disable
connstring: host=clair-database user=clair dbname=indexer sslmode=disable
scanlock_retry: 10
layer_scan_concurrency: 5
migrations: true
matcher:
indexer_addr: http://clair-traefik:6060/
connstring: host=clair-db port=5432 user=clair dbname=clair sslmode=disable
indexer_addr: http://clair-indexer:6060/
connstring: host=clair-database user=clair dbname=matcher sslmode=disable
max_conn_pool: 100
migrations: true
matchers: {}
notifier:
indexer_addr: http://clair-traefik:6060/
matcher_addr: http://clair-traefik:6060/
connstring: host=clair-db port=5432 user=clair dbname=clair sslmode=disable
indexer_addr: http://clair-indexer:6060/
matcher_addr: http://clair-matcher:6060/
connstring: host=clair-database user=clair dbname=notifier sslmode=disable
migrations: true
delivery_interval: 5s
poll_interval: 15s
# webhook:
# target: "http://webhook/"
delivery_interval: 30s
poll_interval: 1m
webhook:
target: "http://webhook-target/"
callback: "http://clair-notifier:6060/notifier/api/v1/notification/"
# amqp:
# direct: true
# exchange:
# name: ""
# type: "direct"
# durable: true
# auto_delete: false
# uris: ["amqp://guest:guest@clair-rabbitmq:5672/"]
# routing_key: "notifications"
# callback: "http://clair-notifier/notifier/api/v1/notifications"
amqp:
direct: true
exchange:
name: ""
type: "direct"
durable: true
auto_delete: false
uris: ["amqp://guest:guest@clair-rabbitmq:5672/"]
routing_key: "notifications"
callback: "http://clair-notifier/notifier/api/v1/notifications"
# tracing and metrics config
trace:
name: "jaeger"
probability: 1
# probability: 1
jaeger:
agent:
endpoint: "jaeger:6831"
endpoint: "clair-jaeger:6831"
service_name: "clair"
metrics:
name: "prometheus"
12 changes: 12 additions & 0 deletions local-dev/clair/init.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
CREATE USER clair WITH PASSWORD 'clair';
CREATE USER quay WITH PASSWORD 'quay';
CREATE DATABASE indexer WITH OWNER clair;
CREATE DATABASE matcher WITH OWNER clair;
CREATE DATABASE notifier WITH OWNER clair;
CREATE DATABASE quay WITH OWNER quay;
\connect matcher
CREATE EXTENSION "uuid-ossp";
\connect notifier
CREATE EXTENSION "uuid-ossp";
\connect quay
CREATE EXTENSION "pg_trgm";

0 comments on commit 0fd1120

Please sign in to comment.