-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes #239
- Loading branch information
Showing
3 changed files
with
48 additions
and
0 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,6 @@ | ||
ARG CLAIR_TAG=latest | ||
FROM "quay.io/coreos/clair:$CLAIR_TAG" | ||
|
||
COPY configs/clair.yml /config/config.yaml | ||
|
||
CMD ["-config=/config/config.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 |
---|---|---|
@@ -0,0 +1,16 @@ | ||
clair: | ||
|
||
database: | ||
type: pgsql | ||
options: | ||
# PostgreSQL Connection string | ||
# https://www.postgresql.org/docs/current/static/libpq-connect.html#LIBPQ-CONNSTRING | ||
source: host=postgres port=5432 user=postgres sslmode=disable statement_timeout=60000 | ||
|
||
api: | ||
# v3 grpc/RESTful API server address | ||
addr: "0.0.0.0:6060" | ||
|
||
# Health server address | ||
# This is an unencrypted endpoint useful for load balancers to check to healthiness of the clair server. | ||
healthaddr: "0.0.0.0:6061" |
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,26 @@ | ||
version: '3.5' | ||
|
||
services: | ||
|
||
clair: | ||
container_name: dab_clair | ||
build: | ||
context: . | ||
dockerfile: Dockerfile.clair | ||
args: | ||
- "CLAIR_TAG=${DAB_APPS_CLAIR_TAG:-latest}" | ||
labels: | ||
description: 'Vulnerability Static Analysis for Containers' | ||
com.centurylinklabs.watchtower.enable: 'true' | ||
restart: on-failure | ||
depends_on: | ||
- postgres | ||
expose: | ||
- 6060 | ||
- 6061 | ||
tmpfs: | ||
- /tmp | ||
|
||
networks: | ||
default: | ||
name: dab_apps |