-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
local-dev: clair: update default dev config
Signed-off-by: Hank Donnay <hdonnay@redhat.com>
- Loading branch information
Showing
3 changed files
with
49 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
quay.yaml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"; |