Skip to content

Commit

Permalink
[ubuntu] pin podmanm, add testcase for podman networking (#7763)
Browse files Browse the repository at this point in the history
Related: #7753
  • Loading branch information
ilia-shipitsin authored Sep 4, 2023
1 parent 1e590b7 commit 1a30e20
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
10 changes: 9 additions & 1 deletion images/linux/scripts/installers/containers.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,15 @@

source $HELPER_SCRIPTS/os.sh

install_packages=(podman buildah skopeo)
#
# pin podman due to https://github.com/actions/runner-images/issues/7753
# https://bugs.launchpad.net/ubuntu/+source/libpod/+bug/2024394
#
if isUbuntu20; then
install_packages=(podman buildah skopeo)
else
install_packages=(podman=3.4.4+ds1-1ubuntu1 buildah skopeo)
fi

# Packages is available in the official Ubuntu upstream starting from Ubuntu 21
if isUbuntu20; then
Expand Down
6 changes: 6 additions & 0 deletions images/linux/scripts/tests/Tools.Tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -341,6 +341,12 @@ Describe "Containers" {

"$ContainerCommand -v" | Should -ReturnZeroExitCode
}

# https://github.com/actions/runner-images/issues/7753
It "podman networking" -TestCases "podman CNI plugins" {
"podman network create -d bridge test-net && podman network ls" | Should -Not -MatchCommandOutput "Error"
}

}

Describe "nvm" {
Expand Down

0 comments on commit 1a30e20

Please sign in to comment.