https://github.com/accso/docker-clair
https://github.com/accso/docker-clair
Last synced: 4 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/accso/docker-clair
- Owner: accso
- Created: 2017-09-25T14:37:24.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-10-11T19:22:42.000Z (over 8 years ago)
- Last Synced: 2025-02-23T22:25:53.969Z (over 1 year ago)
- Language: Shell
- Size: 7.81 KB
- Stars: 0
- Watchers: 6
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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](https://github.com/jwilder/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.