Skip to content
This repository has been archived by the owner on Jan 10, 2023. It is now read-only.

Latest commit

 

History

History
42 lines (31 loc) · 1.25 KB

README.md

File metadata and controls

42 lines (31 loc) · 1.25 KB

adorsys/ci-clair

https://hub.docker.com/r/adorsys/ci-clair/

Description

Provides a local clair scanner. With clair you can scan you images inside the CI pipeline

See also:

Tags

Name Description Size
latest -

CI Examples

gitlab-ci.yml

scan:
  stage: scan
  image: 
    name: adorsys/ci-clair
  services:
    - name: arminc/clair-db:latest
      alias: postgres
  before_script:
    - /clair -config=/config/config.yaml -log-level=warn &
    - echo "$CI_BUILD_TOKEN" | docker login -u gitlab-ci-token --password-stdin $CI_REGISTRY
    - docker pull $CI_REGISTRY_IMAGE:latest
    - wait-for-clair
  script:
    - clair-scanner -c http://localhost:6060 --ip $(hostname -i) "$CI_REGISTRY_IMAGE:latest"