Commit f5a6300

mo <mo.khan@gmail.com>
2019-07-24 21:04:25
specify clair url and ip
1 parent f6d4cc2
Changed files (1)
.gitlab-ci.yml
@@ -30,10 +30,12 @@ rspec:
 examine:
   image:
     name: docker:stable
+  allow_failure: true
   variables:
     DOCKER_HOST: tcp://docker:2375
     DOCKER_DRIVER: overlay2
     GIT_STRATEGY: none
+    CLAIR_URL: http://docker:6000
   stage: test
   script:
-    - docker run -v /var/run/docker.sock:/var/run/docker.sock $DOCKER_IMAGE clair scan mokhan/minbox:latest
+    - docker run -v /var/run/docker.sock:/var/run/docker.sock $DOCKER_IMAGE clair scan mokhan/minbox:latest --clair_url $CLAIR_URL --ip $(hostname -i)