How to Use Devicemapper Docker Filesystem Backends in Travis CI? -


i have problems travis ci because of https://github.com/docker/docker/issues/6980.

i found solution - add in /etc/default/docker:

docker_opts="--storage-driver=devicemapper" 

so tried modify docker setting use storage driver in .travis.yml:

before_install:   - sudo ps -a|grep docker   - sudo service docker stop   - sudo ps -a   - sudo echo 'docker_opts="-h tcp://127.0.0.1:2375 -h unix:///var/run/docker.sock -s devicemapper"' | sudo tee /etc/default/docker > /dev/null   #- sudo echo 'docker_opts="-s devicemapper"' | sudo tee /etc/default/docker > /dev/null   - sudo cat /etc/default/docker   - sudo service docker start   - sudo ps -a|grep docker   #- sudo service docker restart   - sudo docker pull centos:7 

but failed. when use:

- sudo echo 'docker_opts="-h tcp://127.0.0.1:2375 -h unix:///var/run/docker.sock -s devicemapper"' | sudo tee /etc/default/docker > /dev/null 

i got error https://travis-ci.org/weldpua2008/ansible-apache/jobs/82684013:

post http:///var/run/docker.sock/v1.19/images/create?fromimage=weldpua2008%2fdocker-ansible%3acentos6_v1.9.2: dial unix /var/run/docker.sock: no such file or directory. trying connect tls-enabled daemon without tls? 

and when tried:

 - sudo echo 'docker_opts="-s devicemapper"' | sudo tee /etc/default/docker > /dev/null 

i got https://travis-ci.org/weldpua2008/ansible-apache/jobs/82685316 error:

cannot connect docker daemon. 'docker -d' running on host? 

because of travis ci docker bug there way use new version of docker. thank dominic jodoin travis ci team. .travis.yml:

sudo: required env:   #matrix:   - os_type=centos os_version=6 ansible_version=1.9.2  branches:   only:   - master #  - stable  services:   - docker  before_install:   - sudo apt-get update   - sudo apt-get upgrade lxc-docker   - echo 'docker_opts="-h tcp://127.0.0.1:2375 -h unix:///var/run/docker.sock -s devicemapper"' | sudo tee /etc/default/docker > /dev/null   - sudo service docker restart   - sleep 5   - sudo docker pull weldpua2008/docker-ansible:${os_type}${os_version}_v${ansible_version}  script:  # run tests in container  - sudo docker run --rm=true -v `pwd`:/ansible-apache:rw weldpua2008/docker-ansible:${os_type}${os_version}_v${ansible_version} /bin/bash -c "/ansible-apache/tests/test-in-docker-image.sh ${os_type} ${os_version} ${ansible_version}"  notifications:   email: false 

Comments

Popular posts from this blog

html - Outlook 2010 Anchor (url/address/link) -

javascript - Why does running this loop 9 times take 100x longer than running it 8 times? -

Getting gateway time-out Rails app with Nginx + Puma running on Digital Ocean -