File tree Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change 7
7
init : /sbin/init
8
8
run_opts : " "
9
9
playbook : test.yml
10
+ DOCKER_VERSION : " 1.9.1-0~trusty"
10
11
- distribution : centos
11
12
version : 7
12
13
init : /usr/lib/systemd/systemd
13
14
run_opts : " --privileged --volume=/sys/fs/cgroup:/sys/fs/cgroup:ro"
14
15
playbook : centos-7-test.yml
16
+ DOCKER_VERSION : " 1.9.1-0~trusty"
15
17
- distribution : ubuntu
16
18
version : 14.04
17
19
init : /sbin/init
18
20
run_opts : " "
19
21
playbook : test.yml
22
+ DOCKER_VERSION : " 1.9.1-0~trusty"
20
23
# - distribution: ubuntu
21
24
# version: 12.04
22
25
# init: /sbin/init
23
26
# run_opts: ""
24
27
# playbook: test.yml
28
+ # DOCKER_VERSION: "1.9.1-0~trusty"
25
29
26
30
services :
27
31
- docker
28
32
29
33
before_install :
34
+ # Downgrade to older version of Docker engine.
35
+ - sudo apt-get update
36
+ - sudo apt-get remove docker-engine -yq
37
+ - sudo apt-get install docker-engine=$DOCKER_VERSION -yq --no-install-suggests --no-install-recommends --force-yes -o Dpkg::Options::="--force-confnew"
38
+
30
39
# Pull container
31
40
- ' sudo docker pull ${distribution}:${version}'
32
41
# Customize container
@@ -74,5 +83,11 @@ script:
74
83
# Clean up
75
84
- sudo docker stop "$(cat ${container_id})"
76
85
86
+ after_failure :
87
+ # Check MySQL settings.
88
+ - ' sudo docker exec --tty "$(cat ${container_id})" env TERM=xterm cat /var/log/mysql/error.log'
89
+ - ' sudo docker exec --tty "$(cat ${container_id})" env TERM=xterm cat /var/log/mysql.err'
90
+ - ' sudo docker exec --tty "$(cat ${container_id})" env TERM=xterm cat /var/log/mysql.log'
91
+
77
92
notifications :
78
93
webhooks : https://galaxy.ansible.com/api/v1/notifications/
You can’t perform that action at this time.
0 commit comments