Skip to content

accso/docker-clair

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

docker-clair

A simple container creating the Clair configuration file /etc/clair/config.yaml from enviroment settings on the fly and waiting for the PostgreSQL server to be up before Clair is started.

Both aspects (implemented using dockerize) come in handy when the container is used in a CI context (e.g. GitLab-CI) where mounting directories and waiting for services are not (easily) supported.

The container requires the following variables to be passed as environment settings:

  • POSTGRESQL_HOSTNAME: defaults to postgres
  • POSTGRESQL_USERNAME: defaults to postgres
  • POSTGRESQL_PORT: defaults to 5432
  • POSTGRESQL_WAIT: defaults to 0 (time in seconds before the script tries to start Clair)
  • POSTGRESQL_TIMEOUT: defaults to 10 (time in seconds before dockerize gives up on PostgreSQL)
  • PGPASSWORD: no default
  • CLAIR__UPDATE_INTERVAL: defaults to 24 (time in hours before the vulnerability metadata is updated)

Note that the setting PGPASSWORD is not specific to this container but is a general feature of the PostgreSQL binaries.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages