在circleCI上运行docker-container测试 [英] Running docker-container tests on circleCI
本文介绍了在circleCI上运行docker-container测试的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我为我的开源代码创建了一些集成测试,我正在寻找一个可公开访问的CI服务来托管它们。由于Travis-CI必须为我的所有容器提供小配额,我想我将使用CircleCI。这是我的 cirle.yml
:
I have created some integration tests for my open-sourced code and I am looking for a publicly accessible CI service to host them. As Travis-CI has to small quotas for all my containers, I think I will use CircleCI. This is my cirle.yml
:
machine:
services:
- docker
dependencies:
override:
- pip install docker-compose
test:
override:
- cd integration-tests && docker-compose run --rm runner
但是运行后,我收到错误消息client and server don 't有相同的版本(客户端:1.18,服务器:1.16)我的问题是什么?
However after running this I get error message "client and server don't have same version (client : 1.18, server: 1.16)" What is my problem?
推荐答案
@zefciu这个配置为我工作
@zefciu This config just worked for me
machine:
services:
- docker
dependencies:
override:
- sudo pip install -U docker-compose==1.3.3
test:
override:
- docker-compose -f <compose-file> build && docker-compose -f <compose-file> up
这篇关于在circleCI上运行docker-container测试的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文