-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
executable file
·33 lines (27 loc) · 1.11 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# Adapted from: https://github.com/cptactionhank/docker-atlassian-confluence/blob/master/.travis.yml
# Thanks @cptactionhank
language: c
env:
global:
- "HOST_IP=$(/sbin/ifconfig venet0:0 | grep 'inet addr' | awk -F: '{print $2}' | awk '{print $1}')"
- DOCKER_HOST=tcp://$HOST_IP:2375
- DOCKER_PORT_RANGE=2400:2500
- SLIRP_PORTS=$(seq 2375 2500)
before_install:
- sudo sh -c "wget -qO- https://get.docker.io/gpg | apt-key add -"
- sudo sh -c "echo deb http://get.docker.io/ubuntu docker main > /etc/apt/sources.list.d/docker.list"
- echo exit 101 | sudo tee /usr/sbin/policy-rc.d
- sudo chmod +x /usr/sbin/policy-rc.d
install:
- sudo apt-get -qqy update
# Doesn't work with Docker > 1.2.0
- sudo apt-get -qqy install lxc lxc-docker-1.2.0 slirp
- sudo sudo usermod -aG docker "$USER"
- git clone git://github.com/cptactionhank/sekexe
before_script:
- "sekexe/run 'mount -t tmpfs -o size=8g tmpfs /var/lib/docker && docker -d -H tcp://0.0.0.0:2375' &"
- "while ! docker info &> /dev/null ; do sleep 1; done"
- docker pull jrowen/dcaffe
script:
- docker version
- docker run jrowen/dcaffe