Skip to content

Commit 3c75a58

Browse files
hanwen-clusterhanwen-pcluste
authored andcommitted
[kitchen tests] Improve Docker mocker
1. /etc/init.d is no long used. Therefore, the mocks are removed 2. Install Python. RHEL9 docker does not come with Python. We ere just lucky that previous docker had Python installed Signed-off-by: Hanwen <[email protected]>
1 parent 4f9afae commit 3c75a58

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

cookbooks/aws-parallelcluster-tests/recipes/docker_mock.rb

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,15 +28,10 @@
2828
#!/bin/bash
2929
echo "service 0:off 1:off 2:on 3:on 4:on 5:on 6:off"
3030
)
31+
mode '0744'
3132
end
3233

3334
%w(
34-
/etc/init.d/rpc-statd
35-
/etc/init.d/rpc-statd.service
36-
/etc/init.d/nfs-idmapd
37-
/etc/init.d/nfs-client.target
38-
/etc/init.d/nfs-config.service
39-
/etc/init.d/nfs-kernel-server.service
4035
/sbin/service
4136
/usr/local/bin/udevadm
4237
/usr/local/sbin/sysctl
@@ -63,6 +58,8 @@
6358

6459
if redhat_on_docker?
6560
package 'openssh-clients'
61+
package 'python3'
62+
package 'python3-pip'
6663

6764
# Mock python environment
6865
package 'python39'

0 commit comments

Comments
 (0)