Compare commits

..

113 commits

Author SHA1 Message Date
Debarshi Ray
c561ac16e4 Fix the build by ensuring that the %{_unitdir} RPM macro is defined
A BuildRequires on systemd should be added as specified in the Fedora
packaging guidelines: https://fedoraproject.org/wiki/Packaging:Systemd

It's likely that something in the dependency chain is implicitly
pulling in the systemd RPM, but that might change.
2019-03-19 20:01:35 +01:00
Ed Santiago
13c2d363f7 Screwup fix: remove test-environment hacks
I accidentally left in some code used for testing
the CI setup.

Signed-off-by: Ed Santiago <santiago@redhat.com>
2019-03-13 07:35:04 -06:00
Ed Santiago
fb27e46c4c New tests subpackage
Define a new podman-tests subpackage, containing a set of
tests intended to be run as gates. As of this initial checkin,
this consists of a set of BATS tests in /usr/share/podman .

Include a configuration for running under Fedora CI

Signed-off-by: Ed Santiago <santiago@redhat.com>
2019-03-12 08:33:12 -06:00
Daniel J Walsh
6484e52ff8
Upstream 1.1.2 release 2019-03-05 13:07:40 -05:00
Daniel J Walsh
e9ac3e164c
Upstream 1.1.0 release 2019-02-27 07:43:22 -05:00
Daniel J Walsh
a12dcedf44
Upstream 1.0.0 release 2019-01-12 08:40:28 -05:00
Daniel J Walsh
db89698d63
Upstream 1.0.0 release 2019-01-12 07:31:11 -05:00
baude
8a2bd0adc7 upstream 0.12.1.2
Signed-off-by: baude <bbaude@redhat.com>
2018-12-13 13:56:11 -06:00
baude
91e1364b9e upstream 0.12.1.1
Signed-off-by: baude <bbaude@redhat.com>
2018-12-07 13:58:15 -06:00
baude
35a96ec3b7 upstream 0.12.1
Signed-off-by: baude <bbaude@redhat.com>
2018-12-06 19:33:37 -06:00
Ed Santiago
a21eb3d874 pypodman: add rpm deps on python3-podman, pytoml
Fixes:

  pkg_resources.DistributionNotFound: The 'pytoml' distribution was not found and is required by pypodman
   "  "  "  "    "   "   "   "  "  "   "  'podman'  "  " " ...

Signed-off-by: Ed Santiago <santiago@redhat.com>
2018-11-26 09:24:29 -07:00
baude
0e78a5adcf upstream 0.11.1 2018-11-08 16:05:02 -06:00
Lokesh Mandvekar
72848677f1 podman-0.10.1.3-3.gitdb08685
- correct bug id in previous changelog entry

Signed-off-by: Lokesh Mandvekar <lsm5@fedoraproject.org>
2018-10-28 20:12:05 -04:00
Lokesh Mandvekar
a6cce5cd5e podman-0.10.1.3-2.gitdb08685
- Resolves: #1643733 - build podman with ostree support

Signed-off-by: Lokesh Mandvekar <lsm5@fedoraproject.org>
2018-10-28 19:31:39 -04:00
Lokesh Mandvekar
6220c50f8d podman-0.10.1.3-1.gitdb08685
- bump to v0.10.1.3
- correct changelog errors

Signed-off-by: Lokesh Mandvekar <lsm5@fedoraproject.org>
2018-10-18 15:33:59 -04:00
Daniel J Walsh
f181ec19f7
Upstream 10.1 release 2018-10-12 08:38:58 -04:00
Daniel J Walsh
c124075fb7
Upstream 10.1 release 2018-10-12 08:08:49 -04:00
Daniel J Walsh
3c15b01ad2
Upstream 10.1 release 2018-10-12 07:49:48 -04:00
baude
afd80b7684 Upstream 0.9.3.1
Signed-off-by: baude <bbaude@redhat.com>
2018-09-25 16:37:44 -05:00
Daniel J Walsh
7e477b7431
Fix required version of runc 2018-09-25 10:14:26 -04:00
Lokesh Mandvekar
fe75b40de8 podman-0.9.3-4.gita723353
- bump to v0.9.3
- fix prior erroneous merges
- no epoch for f28

Signed-off-by: Lokesh Mandvekar <lsm5@fedoraproject.org>
2018-09-24 11:26:30 -04:00
Lokesh Mandvekar
8b0042679c Revert "autobuilt c3a0874"
This reverts commit b277253c62.
2018-09-24 11:15:02 -04:00
Lokesh Mandvekar
acf9b5e957 Revert "autobuilt c3a0874"
This reverts commit 7a42969101.
2018-09-24 11:14:50 -04:00
Daniel J Walsh
7a42969101
autobuilt c3a0874 2018-09-22 07:37:19 -04:00
Daniel J Walsh
b277253c62
autobuilt c3a0874 2018-09-22 06:50:41 -04:00
Yanko Kaneti
6f642154c9 Point URL to podman.io 2018-09-20 16:16:41 +03:00
Daniel J Walsh
8e80a75a47
Merge in fixes for podman build, to handle symbolic links and running sudo in Dockerfile 2018-09-17 12:52:52 -04:00
baude
9c8930ba62 upstream 0.9.2 2018-09-14 20:19:59 -05:00
Daniel J Walsh
a10ce0d084
podman no longer requires atomic-registries
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2018-09-14 07:12:25 -04:00
baude
b40feeab2e correct typo
Signed-off-by: baude <bbaude@redhat.com>
2018-09-13 12:18:31 -05:00
Lokesh Mandvekar
013d065b27 fix .gitignore
Signed-off-by: Lokesh Mandvekar <lsm5@fedoraproject.org>
2018-09-12 15:16:01 -04:00
baude
f87db43526 Remove device-mapper support
Signed-off-by: baude <bbaude@redhat.com>
2018-09-12 08:47:19 -05:00
Lokesh Mandvekar
9acd5e68d2 import cri-o tarball for conmon
Signed-off-by: Lokesh Mandvekar <lsm5@fedoraproject.org>
2018-09-11 23:44:18 -04:00
Lokesh Mandvekar
1938293f08 podman-1:0.9.1.1-1.dev.git95dbcad
- bump to v0.9.1.1
- built commit 95dbcad

Signed-off-by: Lokesh Mandvekar <lsm5@fedoraproject.org>
2018-09-11 23:37:13 -04:00
Daniel J Walsh
d6e7ed48ae
Grab correct commit for podman-0.9.1 2018-09-09 07:18:39 -04:00
baude
fa17b14f73 Adding specific container selinux recommends
Signed-off-by: baude <bbaude@redhat.com>
2018-09-07 15:17:33 -05:00
baude
f17a8930e8 Upstream 0.9.1 release
Signed-off-by: baude <bbaude@redhat.com>
2018-09-07 15:07:57 -05:00
Daniel J Walsh
8f41b45606
Fix required version of runc 2018-09-04 12:26:42 -04:00
Daniel J Walsh
feb2d5d8a0
Fix rpm -qi podman to show the correct URL 2018-09-04 09:58:37 -04:00
Daniel J Walsh
3c16fb4a04
Fix required version of runc 2018-09-04 09:26:45 -04:00
Daniel J Walsh
e77b95c0c7
Add a specific version of runc or later to require 2018-09-03 07:08:19 -04:00
baude
ec2a32462a upstream 0.8.5
Signed-off-by: baude <bbaude@redhat.com>
2018-08-31 17:53:44 -05:00
baude
2b4131b56f Upstream 0.8.5 release
Signed-off-by: baude <bbaude@redhat.com>
2018-08-31 17:47:40 -05:00
Lokesh Mandvekar
e56f0c7587 podman-0.8.4-2.git9f9b8c
- correct min dep on containernetworking-plugins
- update bundled provides

Signed-off-by: Lokesh Mandvekar <lsm5@fedoraproject.org>
2018-08-30 09:38:47 -04:00
Lokesh Mandvekar
5b6a96b26d correct min dep on containernetworking-plugins
Signed-off-by: Lokesh Mandvekar <lsm5@fedoraproject.org>
2018-08-30 09:15:34 -04:00
Daniel J Walsh
5da99bc5e6
Upstream 0.8.4 release 2018-08-26 07:25:16 -04:00
Lokesh Mandvekar
a30fb92322 podman-0.8.3-4.git9d09a4
- Resolves: #1619411 - python3-podman requires python3-psutil

Signed-off-by: Lokesh Mandvekar <lsm5@fedoraproject.org>
2018-08-22 10:59:53 -04:00
Lokesh Mandvekar
af179a4f51 podman-0.8.3-3 - bump release tag
Signed-off-by: Lokesh Mandvekar <lsm5@fedoraproject.org>
2018-08-22 10:18:14 -04:00
Lokesh Mandvekar
8ce38a4ee1 podman-0.8.3-3.git9d09a4
- podman-docker conflicts with moby-engine
- podman requires containernetworking-plugins, nftables
- use default %%gobuild definition

Signed-off-by: Lokesh Mandvekar <lsm5@fedoraproject.org>
2018-08-22 10:17:02 -04:00
Daniel J Walsh
b96c8081c5
Remove requires buildah 2018-08-21 12:21:37 -07:00
baude
ddbbc71208 upstream 0.8.3 release
Signed-off-by: baude <bbaude@redhat.com>
2018-08-17 16:00:51 -05:00
Daniel J Walsh
c92ca272fc
python3-podman requires psutil package
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2018-08-16 15:01:24 -04:00
Daniel J Walsh
c8a2ce2314
Upstream 0.8.2.1 release
Add support for podman-docker
Add support for podman shipping its own conmon. Need newer version than shipped conmon package.
-* Sat Aug 11 2018 baude <bbaude@redhat.com> 0.8.2-1.git7a526bb
-Upstream 0.8.2 release
2018-08-12 05:52:02 -04:00
baude
c6997b69eb Upstream 0.8.2 release
Signed-off-by: baude <bbaude@redhat.com>
2018-08-11 06:59:30 -05:00
Daniel J Walsh
6bee78fbaf
Add recommends for slirp4netns and container-selinux
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2018-08-08 13:11:42 -06:00
Daniel J Walsh
086837c054
Update conmon requirement
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2018-08-07 14:43:37 -06:00
Daniel J Walsh
337905973b
Bump to v0.8.1 2018-08-04 05:29:09 -04:00
Daniel J Walsh
e2ca4dcd13
Bump to v0.8.1 2018-08-04 04:22:58 -04:00
Daniel J Walsh
70dbcabb01
Bump to v0.8.1 2018-08-04 04:19:30 -04:00
Daniel J Walsh
9dde582730
podman does not require atomic-registries.conf to be installed
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2018-08-01 09:15:13 -04:00
Daniel J Walsh
6bc1c31ac2
Fix commit version so we get the right code 2018-07-29 07:00:55 -04:00
baude
c12296a7c3 Building 0.7.4 upstream with local spec changes for python from lsm
Signed-off-by: baude <bbaude@redhat.com>
2018-07-28 10:31:06 -05:00
Daniel J Walsh
be378a57e8
Merge branch 'f28' of ssh://pkgs.fedoraproject.org/rpms/podman into f28 2018-07-27 15:49:13 -04:00
Daniel J Walsh
6bcad08f93
Release Version 2018-07-27 15:39:35 -04:00
Lokesh Mandvekar
5038345fd0 podman-0.7.4-2.dev.gitbd7566f
- fix version for python subpackages

Signed-off-by: Lokesh Mandvekar <lsm5@fedoraproject.org>
2018-07-27 15:38:09 -04:00
Daniel J Walsh
1ae4113a71
Upstream 0.7.4 2018-07-27 15:17:28 -04:00
Daniel J Walsh
0fa51fa221
Upstream 0.7.4 2018-07-27 13:49:52 -04:00
Daniel J Walsh
f3ba9b5200
Upstream 0.7.4 2018-07-27 13:29:35 -04:00
Daniel J Walsh
7803132c0a
Upstream 0.7.4 2018-07-27 13:20:56 -04:00
Daniel J Walsh
69749ff6cd
Upstream 0.7.4 2018-07-27 12:39:50 -04:00
Daniel J Walsh
88be0f4dd0
Upstream 0.7.4 2018-07-27 12:36:13 -04:00
Daniel J Walsh
31525d7144
Upstream 0.7.4 2018-07-27 12:30:15 -04:00
Daniel J Walsh
ddf164b596
Change container-selinux Requires to Recommends 2018-07-23 15:15:51 -04:00
Daniel J Walsh
2dbbbfcb3c
Turn on ostree support 2018-07-21 07:17:14 -04:00
baude
114a33e134 Upstream 0.7.3
Signed-off-by: baude <bbaude@redhat.com>
2018-07-20 14:33:28 -05:00
Daniel J Walsh
86693f8c10
Merge python3-podman and python3-pypodman into the same subpackage. 2018-07-14 06:47:47 -04:00
baude
b4ee449e68 Upstream 0.7.2 2018-07-13 20:54:30 -05:00
baude
c80c59c756 Add varlink build tags for f28
Signed-off-by: baude <bbaude@redhat.com>
2018-07-13 08:40:32 -05:00
Lokesh Mandvekar
e3e854460a podman-0.7.2-1.dev.git4f9b1ae
- built commit 4f9b1ae
- Resolves: #1598581, #1599130 - CVE-2018-10892

Signed-off-by: Lokesh Mandvekar <lsm5@fedoraproject.org>
2018-07-10 10:40:52 -04:00
baude
d6a5dc701f Upstream 0.7.1 2018-07-06 17:21:41 -05:00
baude
b986a94248 Upstream 0.6.5 2018-06-29 15:52:11 -05:00
Lokesh Mandvekar
82a2caea2c podman-0.6.4-2.gitd5beb2f4f
- built conmon from cri-o commit 0acf849

Signed-off-by: Lokesh Mandvekar <lsm5@fedoraproject.org>
2018-06-26 10:46:39 -04:00
baude
9460085e28 Upstream 0.6.4 2018-06-22 15:12:40 -05:00
baude
10f7b22dbd Upstream 0.6.3 2018-06-15 11:59:52 -05:00
Daniel J Walsh
c656598dfd
Bump to v0.6.2 2018-06-11 14:34:42 -04:00
Daniel J Walsh
90e1eeae5e
Bump to v0.6.2 2018-06-11 14:33:51 -04:00
Daniel J Walsh
8a73424f91
Update v0.6.2 2018-06-08 15:15:49 -04:00
baude
0b8c59b9e1 Upstream 0.6.1 release 2018-06-01 17:37:57 -05:00
baude
c5e7c48a70 generate the varlink go file prior to build
Signed-off-by: baude <bbaude@redhat.com>
2018-05-29 15:37:34 -05:00
baude
5411eea506 Upstream 0.5.4 2018-05-25 13:04:52 -05:00
baude
199c77bcd6 Patching to correct paths and security permissions 2018-05-19 10:53:13 -05:00
baude
5f72cc86c5 Upstream 0.5.3 2018-05-18 13:24:57 -05:00
baude
50ed84c11a Upstream 0.5.2 2018-05-11 13:16:42 -05:00
baude
b344017071 Upstream 0.5.1 release 2018-05-04 10:48:45 -05:00
baude
ef20a8ac6e Release 0.4.4-2 ... fixes to commit and systemd files 2018-05-01 07:56:34 -05:00
baude
6aebb2d2fb Upstream release 0.4.4 2018-04-27 19:13:09 -05:00
baude
0c45b4d7d4 Upstream 0.4.3 2018-04-20 12:47:04 -05:00
baude
c8ef7b7fa2 Add runtime dep for oci-systemd-hook
Signed-off-by: baude <bbaude@redhat.com>
2018-04-16 13:22:42 -05:00
baude
ec027cf18b New Upstream 0.4.2 release and updated conmon 2018-04-13 14:13:42 -05:00
baude
7e4a45e6c2 Upstream release 0.4.1 2018-04-05 12:25:35 -05:00
Daniel J Walsh
da31d4ffcb Add proper version of conmon 2018-04-03 08:44:59 -04:00
Daniel J Walsh
582532fe26 Add proper version of conmon 2018-04-03 08:24:05 -04:00
baude
d8652e3ca3 Upstream 0.3.5 2018-03-29 13:40:58 -05:00
baude
149573eb60 Upstream release 0.3.4 2018-03-23 13:23:10 -05:00
baude
88f1d4ca3c upstream 0.3.3 2018-03-16 10:42:46 -05:00
Lokesh Mandvekar
8e969a4644 podman-0.3.3-1.dev.gitbc358eb
- built podman commit bc358eb
- built conmon from cri-o commit 712f3b8

Signed-off-by: Lokesh Mandvekar <lsm5@fedoraproject.org>
2018-03-14 14:22:12 -04:00
baude
0e356c10ff Version 0.3.2-1 2018-03-09 09:32:14 -06:00
baude
2a9ea33c66 version correction 2018-03-04 11:16:19 -06:00
baude
2582eb7057 0.3.1-1 2018-03-02 15:36:04 -06:00
baude
fbf1e09bee correct version/release
Signed-off-by: baude <bbaude@redhat.com>
2018-03-02 15:29:45 -06:00
baude
1088201f44 Release 0.3.1-1
Signed-off-by: baude <bbaude@redhat.com>
2018-03-02 15:23:47 -06:00
Peter Robinson
821230280a Build on ARMv7 too (Fedora supports containers on that arch too) 2018-02-25 13:38:41 +00:00
baude
4cf91c5352 v0.2.2 2018-02-23 13:28:18 -06:00
17 changed files with 1043 additions and 2564 deletions

View file

@ -1 +0,0 @@
1

1804
.gitignore vendored

File diff suppressed because it is too large Load diff

View file

@ -1,166 +0,0 @@
---
# See the documentation for more information:
# https://packit.dev/docs/configuration/
downstream_package_name: podman
upstream_tag_template: v{version}
# These files get synced from upstream to downstream (Fedora / CentOS Stream) on every
# propose-downstream job. This is done so tests maintained upstream can be run
# downstream in Zuul CI and Bodhi.
# Ref: https://packit.dev/docs/configuration#files_to_sync
files_to_sync:
- src: rpm/gating.yaml
dest: gating.yaml
delete: true
- src: plans/
dest: plans/
delete: true
mkpath: true
- src: test/tmt/
dest: test/tmt/
delete: true
mkpath: true
- src: .fmf/
dest: .fmf/
delete: true
- .packit.yaml
packages:
podman-fedora:
pkg_tool: fedpkg
specfile_path: rpm/podman.spec
podman-centos:
pkg_tool: centpkg
specfile_path: rpm/podman.spec
podman-eln:
specfile_path: rpm/podman.spec
# Disable automatic merging for Copr builds (and subsequent Testing Farm)
merge_pr_in_ci: false
srpm_build_deps:
- git-archive-all
- make
actions:
fix-spec-file: "bash .packit-copr-rpm.sh"
pre-sync: "bash .packit-rpm-git-commit.sh"
jobs:
- job: copr_build
trigger: pull_request
packages: [podman-fedora]
notifications: &packit_generic_failure_notification
failure_comment:
message: "[NON-BLOCKING] Packit jobs failed. @containers/packit-build please check. Everyone else, feel free to ignore."
enable_net: true
targets:
- fedora-all-x86_64
- fedora-all-aarch64
# Re-enable these scans if OpenScanHub starts scanning go packages
# https://packit.dev/posts/openscanhub-prototype
osh_diff_scan_after_copr_build: false
# Ignore until golang is updated in distro buildroot to go 1.23.3+
- job: copr_build
trigger: ignore
packages: [podman-eln]
notifications: *packit_generic_failure_notification
enable_net: true
targets:
fedora-eln-x86_64:
additional_repos:
- "https://kojipkgs.fedoraproject.org/repos/eln-build/latest/x86_64/"
fedora-eln-aarch64:
additional_repos:
- "https://kojipkgs.fedoraproject.org/repos/eln-build/latest/aarch64/"
# Ignore until golang is updated in distro buildroot to go 1.23.3+
- job: copr_build
trigger: ignore
packages: [podman-centos]
notifications: *packit_generic_failure_notification
enable_net: true
targets:
- centos-stream-9-x86_64
- centos-stream-9-aarch64
- centos-stream-10-x86_64
- centos-stream-10-aarch64
# Run on commit to main branch
- job: copr_build
trigger: commit
packages: [podman-fedora]
branch: main
owner: rhcontainerbot
project: podman-next
enable_net: true
# Tests on Fedora
- job: tests
trigger: pull_request
packages: [podman-fedora]
notifications: *packit_generic_failure_notification
targets:
- fedora-all
tmt_plan: "/plans/system/*"
- job: tests
identifier: cockpit-revdeps
trigger: pull_request
packages: [podman-fedora]
notifications:
failure_comment:
message: "Cockpit tests failed for commit {commit_sha}. @martinpitt, @jelly, @mvollmer please check."
targets:
- fedora-latest-stable
- fedora-development
tf_extra_params:
environments:
- artifacts:
- type: repository-file
id: https://copr.fedorainfracloud.org/coprs/g/cockpit/main-builds/repo/fedora-$releasever/group_cockpit-main-builds-fedora-$releasever.repo
tmt:
context:
revdeps: "yes"
- job: tests
identifier: tmt-revdeps
trigger: pull_request
packages: [podman-fedora]
notifications:
failure_comment:
message: "tmt tests failed for commit {commit_sha}. @lsm5, @psss, @thrix please check."
targets:
- fedora-latest
fmf_url: https://github.com/teemtee/tmt
fmf_path: /plans/friends
fmf_ref: main
tmt_plan: "/podman"
- job: propose_downstream
trigger: release
update_release: false
packages: [podman-fedora]
dist_git_branches: &fedora_targets
- fedora-all
- job: koji_build
trigger: commit
packages: [podman-fedora]
sidetag_group: podman-releases
dist_git_branches: *fedora_targets
- job: bodhi_update
trigger: koji_build
packages: [podman-fedora]
sidetag_group: podman-releases
# Dependencies are not rpm dependencies, but packages that should go in the
# same bodhi update
# Ref: https://packit.dev/docs/fedora-releases-guide/releasing-multiple-packages
dependencies:
- buildah
- containers-common
- skopeo
dist_git_branches: *fedora_targets

View file

@ -1,3 +0,0 @@
This repository is maintained by packit.
https://packit.dev/
The file was generated using packit 1.12.0.post1.dev22+gfe66fd850.

View file

@ -1,17 +0,0 @@
--- !Policy
product_versions:
- fedora-*
decision_contexts:
- bodhi_update_push_stable
- bodhi_update_push_testing
subject_type: koji_build
rules:
- !PassingTestCaseRule {test_case_name: fedora-ci.koji-build.tier0.functional}
# recipients: jnovy, lsm5, santiago
--- !Policy
product_versions:
- rhel-*
decision_context: osci_compose_gate
rules:
- !PassingTestCaseRule {test_case_name: osci.brew-build.tier0.functional}

View file

@ -1,37 +0,0 @@
# reverse dependency test for https://github.com/cockpit-project/cockpit-podman/
# packit should automatically notify the cockpit maintainers on failures.
# For questions, please contact @martinpitt, @jelly, @mvollmer
enabled: false
adjust+:
when: revdeps == yes
enabled: true
discover:
how: fmf
url: https://github.com/cockpit-project/cockpit-podman
ref: "main"
execute:
how: tmt
# not relevant for testing podman
environment:
TEST_AUDIT_NO_SELINUX: 1
TEST_ALLOW_JOURNAL_MESSAGES: ".*"
# This has to duplicate cockpit-podman's plan structure; see https://github.com/teemtee/tmt/issues/1770
/podman-system:
summary: Run cockpit-podman system tests
discover+:
test: /test/browser/system
/podman-user:
summary: Run cockpit-podman user tests
discover+:
test: /test/browser/user
/podman-misc:
summary: Run other cockpit-podman tests
discover+:
test: /test/browser/other

View file

@ -1,50 +0,0 @@
discover:
how: fmf
execute:
how: tmt
prepare:
- how: shell
script: modprobe null_blk nr_devices=1
order: 5
- when: distro == centos-stream or distro == rhel
how: shell
script: |
dnf -y install https://dl.fedoraproject.org/pub/epel/epel-release-latest-$(rpm --eval '%{?rhel}').noarch.rpm
dnf -y config-manager --set-enabled epel
order: 10
adjust+:
- enabled: false
when: revdeps == yes
provision:
how: artemis
hardware:
memory: ">= 16 GB"
cpu:
cores: ">= 4"
threads: ">=8"
disk:
- size: ">= 512 GB"
/local-root:
summary: Local rootful tests
discover+:
filter: 'tag:local & tag:root'
/local-rootless:
summary: Local rootless tests
discover+:
filter: 'tag:local & tag:rootless'
/remote-root:
summary: Remote rootful tests
discover+:
filter: 'tag:remote & tag:root'
/remote-rootless:
summary: Remote rootless tests
discover+:
filter: 'tag:remote & tag:rootless'

View file

@ -1,21 +0,0 @@
summary: Run tmt container provision test (downstream only)
enabled: false
adjust+:
- enabled: true
when: initiator != packit and distro != rhel
discover:
how: fmf
filter: 'tag:tmt & tag:downstream'
execute:
how: tmt
prepare:
- when: distro == centos-stream or distro == rhel
how: shell
script: |
dnf -y install https://dl.fedoraproject.org/pub/epel/epel-release-latest-$(rpm --eval '%{?rhel}').noarch.rpm
dnf -y config-manager --set-enabled epel
order: 10

View file

@ -1,29 +0,0 @@
summary: Run toolbox tests (downstream only)
enabled: false
adjust+:
- enabled: true
when: initiator != packit and distro == fedora
provision:
how: artemis
hardware:
memory: ">= 16 GB"
cpu:
cores: ">= 4"
threads: ">=8"
disk:
- size: ">= 512 GB"
prepare:
- name: packages
how: install
package: [toolbox-tests]
discover:
how: fmf
url: https://src.fedoraproject.org/rpms/toolbox
ref: "rawhide"
execute:
how: tmt

File diff suppressed because it is too large Load diff

View file

@ -1 +1,2 @@
SHA512 (v5.7.1.tar.gz) = 81fd4c27ff1d16dcb85229d4e4fd2cb06943ddfe966b5324fa8a8a957b2d2ec2aed7c5da05d6c009148f53b76545b27b0cba506622c8861f70bf7cad6c214a08
SHA512 (cri-o-a30f93c.tar.gz) = 8bfa291fe3720259b63abaae5b0e50574a3437e1742c84fca36ff325d046ddd81a406a26fe0a3c4760b4c69a7e065a9b1ac550f2e061b45aadc7faf4702b798d
SHA512 (libpod-b33a00e.tar.gz) = a682d6e79d23f31ec9a969cacdf108f3c0b21cf61bd8f9cb329f272c237777a15f68e6b74b7217d99985d41e75b3b7d9b9bfe4c5c84c8194ba082a288f1bdce1

View file

@ -1,51 +0,0 @@
require:
- podman-tests
- psmisc
environment:
# PODMAN_TESTING envvar is set in system.sh
PODMAN: /usr/bin/podman
QUADLET: /usr/libexec/podman/quadlet
ROOTLESS_USER: "fedora"
adjust+:
- when: distro == centos-stream
environment+:
ROOTLESS_USER: "ec2-user"
- when: distro == rhel
environment+:
ROOTLESS_USER: "cloud-user"
- when: initiator != "packit"
environment+:
RELEASE_TESTING: true
/local-root:
tag: [ local, root ]
summary: local rootful test
test: bash ./system.sh
duration: 30m
/local-rootless:
tag: [ local, rootless ]
summary: rootless test
test: bash ./system.sh rootless
duration: 30m
/remote-root:
tag: [ remote, root ]
summary: remote rootful test
test: bash ./system.sh
duration: 30m
environment+:
PODMAN: /usr/bin/podman-remote
require+:
- podman-remote
/remote-rootless:
tag: [ remote, rootless ]
summary: remote rootless test
test: bash ./system.sh rootless
duration: 30m
environment+:
PODMAN: /usr/bin/podman-remote
require+:
- podman-remote

View file

@ -1,44 +0,0 @@
#!/usr/bin/env bash
set -exo pipefail
uname -r
loginctl enable-linger "$ROOTLESS_USER"
rpm -q \
aardvark-dns \
buildah \
conmon \
container-selinux \
containers-common \
criu \
crun \
netavark \
passt \
podman \
podman-tests \
skopeo \
slirp4netns \
systemd
export system_service_cmd="/usr/bin/podman system service --timeout=0 &"
export test_cmd="whoami && cd /usr/share/podman/test/system && PODMAN_TESTING=/usr/bin/podman-testing bats ."
if [[ -z $1 ]]; then
if [[ $PODMAN == "/usr/bin/podman-remote" ]]; then
eval "$system_service_cmd"
fi
eval "$test_cmd"
elif [[ $1 == "rootless" ]]; then
if [[ $PODMAN == "/usr/bin/podman-remote" ]]; then
su - "$ROOTLESS_USER" -c "eval $system_service_cmd"
fi
su - "$ROOTLESS_USER" -c "eval $test_cmd"
fi
# Kill all podman processes for remote tests
if [[ $PODMAN == "/usr/bin/podman-remote" ]]; then
killall -q podman
fi
exit 0

View file

@ -1,13 +0,0 @@
enabled: false
adjust:
enabled: true
when: initiator != packit && distro != rhel
summary: Make sure that TMT container provision works
tag: [downstream]
require:
- tmt+provision-container
test:
tmt run --verbose --remove
provision --how container --image fedora
login --command 'cat /etc/os-release'
finish

13
tests/test_podman.sh Executable file
View file

@ -0,0 +1,13 @@
#!/bin/bash
#
# Simple podman tests
#
rm -f /tmp/test.log /tmp/test.debug.log
# Log program versions
rpm -q podman podman-tests >/tmp/test.debug.log
bats /usr/share/podman/test/system &> /tmp/test.log
echo "bats completed with status $?" >>/tmp/test.debug.log

35
tests/test_podman.yml Normal file
View file

@ -0,0 +1,35 @@
---
- hosts: localhost
vars:
- artifacts: ./artifacts
# FIXME! It would be cleaner to include 'podman' in this list; but the
# dnf module is broken in ansible <= 2.8, it doesn't report failures
# to install as long as _one_ package installs! So if podman installs
# but podman-tests doesn't, the `dnf` stanza succeeds, then the test
# one fails with a less-than-helpful error.
#
# See https://github.com/ansible/ansible/pull/49760
- required_packages:
- podman-tests
tags:
- classic
- container
tasks:
- name: install packages
dnf: name="{{ required_packages }}" state=installed
enablerepo=updates-testing
- block:
# FIXME: how to make two passes, one as root and one rootless?
- name: Run test
script: ./test_podman.sh
always:
- name: Pull out logs
fetch:
src: "/tmp/{{ item }}"
dest: "{{ artifacts }}/{{ item }}"
flat: yes
with_items:
- test.log
- test.debug.log

1
tests/tests.yml Normal file
View file

@ -0,0 +1 @@
- import_playbook: test_podman.yml