Commit 5734df4 1 parent 263cd51 commit 5734df4 Copy full SHA for 5734df4
File tree 1 file changed +23
-0
lines changed
1 file changed +23
-0
lines changed Original file line number Diff line number Diff line change
1
+ <%
2
+ podman_host = "/run/user/#{Process.uid}/podman/podman.sock"
3
+ podman = File.socket?(podman_host)
4
+ % >
1
5
---
2
6
driver :
3
7
name : dokken
8
+ <% if podman % >
9
+ docker_host_url : unix://<%= podman_host %>
10
+ <% end % >
4
11
chef_version : 18
5
12
volumes :
6
13
- /var/lib/docker
@@ -16,9 +23,16 @@ driver:
16
23
17
24
transport :
18
25
name : dokken
26
+ <% if podman % >
27
+ docker_host_url : unix://<%= podman_host %>
28
+ login_command : podman
29
+ <% end % >
19
30
20
31
provisioner :
21
32
name : dokken
33
+ <% if podman % >
34
+ docker_host_url : unix://<%= podman_host %>
35
+ <% end % >
22
36
chef_license : accept
23
37
data_bags_path : test/data_bags
24
38
slow_resource_report : true
@@ -29,6 +43,15 @@ verifier:
29
43
root_path : /opt/verifier
30
44
sudo : false
31
45
46
+ <% if podman % >
47
+ lifecycle :
48
+ pre_create :
49
+ - podman create --name chef-18 --replace docker.io/chef/chef:18 sh
50
+ - podman start chef-18
51
+ post_destroy :
52
+ - podman volume prune -f
53
+ <% end % >
54
+
32
55
platforms :
33
56
- name : ubuntu-20.04
34
57
driver :
You can’t perform that action at this time.
0 commit comments