File tree Expand file tree Collapse file tree 4 files changed +53
-11
lines changed Expand file tree Collapse file tree 4 files changed +53
-11
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+
3
+ process :
4
+ php-fpm :
5
+ running : true
6
+
7
+ ...
Original file line number Diff line number Diff line change
1
+ ---
2
+
3
+ process :
4
+ supervisord :
5
+ running : true
6
+
7
+ ...
Original file line number Diff line number Diff line change @@ -32,9 +32,14 @@ tpl_configs:
32
32
tpl_docker_tests :
33
33
- src : Dockerfiles/dev/goss.yaml.j2
34
34
dst : " ../dist/dev/{{ php_version }}-{{ php_type }}-{{ os_name }}/goss.yaml"
35
- - src : Dockerfiles/dev/goss_wait.yaml
36
- dst : " ../dist/dev/{{ php_version }}-supervisord-{{ os_name }}/goss_wait.yaml"
37
35
36
+ tpl_docker_fpm_tests :
37
+ - src : Dockerfiles/dev/goss_wait_fpm.yaml
38
+ dst : " ../dist/dev/{{ php_version }}-fpm-{{ os_name }}/goss_wait.yaml"
39
+
40
+ tpl_docker_supervisord_tests :
41
+ - src : Dockerfiles/dev/goss_wait_supervisord.yaml
42
+ dst : " ../dist/dev/{{ php_version }}-supervisord-{{ os_name }}/goss_wait.yaml"
38
43
39
44
# Enabled extensions
40
45
# #######################################################################################################################
Original file line number Diff line number Diff line change 1
1
---
2
2
3
3
- name : Create dev directories
4
- file :
4
+ ansible.builtin. file :
5
5
path : " {{ item.path }}"
6
6
state : directory
7
- mode : 0775
7
+ mode : " 0775"
8
8
recurse : true
9
9
with_items :
10
10
- " {{ tpl_directories }}"
11
11
12
12
- name : Generate Dockerfiles
13
- template :
13
+ ansible.builtin. template :
14
14
src : " {{ item.src }}"
15
15
dest : " {{ item.dst }}"
16
16
force : true
17
- mode : 0644
17
+ mode : " 0644"
18
18
with_items :
19
19
- " {{ tpl_dockerfiles }}"
20
20
21
21
- name : Generate PHP configuration files
22
- template :
22
+ ansible.builtin. template :
23
23
src : " {{ item.src }}"
24
24
dest : " {{ item.dst }}"
25
25
force : true
26
- mode : 0644
26
+ mode : " 0644"
27
27
with_items :
28
28
- " {{ tpl_configs }}"
29
29
30
- - name : Generate Dockerfile Goss tests
31
- template :
30
+ - name : Generate Dockerfile Goss tests for non-supervisord
31
+ ansible.builtin. template :
32
32
src : " {{ item.src }}"
33
33
dest : " {{ item.dst }}"
34
34
force : true
35
- mode : 0644
35
+ mode : " 0644"
36
36
with_items :
37
37
- " {{ tpl_docker_tests }}"
38
+ when : php_type == 'cli'
39
+
40
+ - name : Generate Dockerfile Goss tests for fpm
41
+ ansible.builtin.template :
42
+ src : " {{ item.src }}"
43
+ dest : " {{ item.dst }}"
44
+ force : true
45
+ mode : " 0644"
46
+ with_items :
47
+ - " {{ tpl_docker_tests }}"
48
+ - " {{ tpl_docker_fpm_tests }}"
49
+ when : php_type == 'fpm'
50
+
51
+ - name : Generate Dockerfile Goss tests for supervisord
52
+ ansible.builtin.template :
53
+ src : " {{ item.src }}"
54
+ dest : " {{ item.dst }}"
55
+ force : true
56
+ mode : " 0644"
57
+ with_items :
58
+ - " {{ tpl_docker_tests }}"
59
+ - " {{ tpl_docker_supervisord_tests }}"
60
+ when : php_type == 'supervisord'
38
61
39
62
...
You can’t perform that action at this time.
0 commit comments