Commit 7567c97

mo <mo.khan@gmail.com>
2019-07-24 20:56:57
try to mount docker.sock file as volume
1 parent e7c6a54
Changed files (1)
.gitlab-ci.yml
@@ -29,12 +29,11 @@ rspec:
 
 examine:
   image:
-    name: $DOCKER_IMAGE
-    entrypoint: [""]
+    name: docker:stable
   variables:
-    DOCKER_HOST: tcp://docker:2375
+    DOCKER_HOST: tcp://localhost:2375
     DOCKER_DRIVER: overlay2
     GIT_STRATEGY: none
   stage: test
   script:
-    - bundle exec ./examine clair scan mokhan/minbox:latest
+    - docker run -v /var/run/docker.sock:/var/run/docker.sock $DOCKER_IMAGE clair scan mokhan/minbox:latest