Skip to content

Commit

Permalink
Add logics to cover podman deployments
Browse files Browse the repository at this point in the history
Change-Id: I12d6e9814c501ae3b3eec2722d3052e4c1b54baa
Signed-off-by: Cédric Ollivier <[email protected]>
  • Loading branch information
collivier committed Sep 30, 2023
1 parent e6cb7dc commit 36b7f40
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions jjb/functest/xtesting-ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
set +x
sudo apt-get -o DPkg::Lock::Timeout=300 update
sudo DEBIAN_FRONTEND=noninteractive apt-get \
-o DPkg::Lock::Timeout=300 install python3-pip docker.io -y
-o DPkg::Lock::Timeout=300 install python3-pip docker.io podman -y
curl -Lo ./kind https://kind.sigs.k8s.io/dl/v0.17.0/kind-linux-amd64
chmod +x ./kind
sudo mv ./kind /usr/local/bin/kind
Expand All @@ -17,6 +17,8 @@
sudo rm -f /etc/systemd/system/docker.service.d/http-proxy.conf
sudo systemctl daemon-reload
sudo systemctl restart docker
sudo podman ps -aq |xargs sudo podman stop || true
sudo podman ps -aq |xargs sudo podman rm || true
sudo rm -rfv /data /tmp/xtesting*
sudo apt-get install ansible patch -y
rm -rf ~/.ansible/roles/collivier.xtesting
Expand All @@ -39,7 +41,7 @@
ssh [email protected] << EOF
sudo apt-get -o DPkg::Lock::Timeout=300 update
sudo DEBIAN_FRONTEND=noninteractive apt-get \
-o DPkg::Lock::Timeout=300 install python3-pip docker.io -y
-o DPkg::Lock::Timeout=300 install python3-pip docker.io podman -y
curl -Lo ./kind https://kind.sigs.k8s.io/dl/v0.17.0/kind-linux-amd64
chmod +x ./kind
sudo mv ./kind /usr/local/bin/kind
Expand All @@ -50,6 +52,8 @@
sudo rm -f /etc/systemd/system/docker.service.d/http-proxy.conf
sudo systemctl daemon-reload
sudo systemctl restart docker
sudo podman ps -aq |xargs sudo podman stop || true
sudo podman ps -aq |xargs sudo podman rm || true
sudo rm -rfv /data /tmp/xtesting*
EOF
sudo apt-get install ansible patch -y
Expand Down Expand Up @@ -114,6 +118,7 @@
name: 'playbook'
playbook:
- all
- podman
- proxy
- proxy2
- radosgw
Expand Down

0 comments on commit 36b7f40

Please sign in to comment.