File tree Expand file tree Collapse file tree 3 files changed +81
-0
lines changed Expand file tree Collapse file tree 3 files changed +81
-0
lines changed Original file line number Diff line number Diff line change
1
+ FROM registry.access.redhat.com/ubi8/ubi:latest as adt
2
+
3
+ COPY <<EOF /etc/yum.repos.d/aap.repo
4
+ [aap25]
5
+ name=aap25
6
+ baseurl='https://rhsm-pulp.corp.stage.redhat.com/content/beta/layered/rhel$releasever/$basearch/ansible-developer/1-beta/os/'
7
+ gpgcheck=0
8
+ enabled=1
9
+ module_hotfixes=1
10
+ EOF
11
+
12
+ RUN <<EOF
13
+ dnf remove -y subscription-manager dnf-plugin-subscription-manager
14
+ dnf install -y ansible-dev-tools
15
+ dnf clean all
16
+ EOF
17
+ RUN <<EOF
18
+ set -e
19
+ echo "Show adt version."
20
+ adt --version
21
+ echo "Show ansible-creator version."
22
+ ansible-creator --version
23
+ echo "Show ansible-lint version."
24
+ ansible-lint --version
25
+ echo "Show ansible-navigator version."
26
+ ansible-navigator --version
27
+ echo "Show molecule version."
28
+ molecule --version
29
+ echo "Show ade version."
30
+ ade --version
31
+ echo "Check if tox recognizes tox-ansible plugin."
32
+ tox --version | grep tox-ansible
33
+ echo "Check if pytest recognizes pytest-ansible plugin."
34
+ pytest-3.11 --version -VV | grep pytest-ansible
35
+ EOF
Original file line number Diff line number Diff line change
1
+ FROM registry.access.redhat.com/ubi9/ubi:latest as adt
2
+
3
+ COPY <<EOF /etc/yum.repos.d/aap.repo
4
+ [aap25]
5
+ name=aap25
6
+ baseurl='https://rhsm-pulp.corp.stage.redhat.com/content/beta/layered/rhel$releasever/$basearch/ansible-developer/1-beta/os/'
7
+ gpgcheck=0
8
+ enabled=1
9
+ module_hotfixes=1
10
+ EOF
11
+
12
+ RUN <<EOF
13
+ dnf remove -y subscription-manager dnf-plugin-subscription-manager
14
+ dnf install -y ansible-dev-tools
15
+ dnf clean all
16
+ EOF
17
+ RUN <<EOF
18
+ set -e
19
+ echo "Show adt version."
20
+ adt --version
21
+ echo "Show ansible-creator version."
22
+ ansible-creator --version
23
+ echo "Show ansible-lint version."
24
+ ansible-lint --version
25
+ echo "Show ansible-navigator version."
26
+ ansible-navigator --version
27
+ echo "Show molecule version."
28
+ molecule --version
29
+ echo "Show ade version."
30
+ ade --version
31
+ echo "Check if tox recognizes tox-ansible plugin."
32
+ tox --version | grep tox-ansible
33
+ echo "Check if pytest recognizes pytest-ansible plugin."
34
+ pytest-3.11 --version -VV | grep pytest-ansible
35
+ EOF
Original file line number Diff line number Diff line change @@ -3,6 +3,8 @@ minversion = 4.0
3
3
envlist =
4
4
lint
5
5
docs
6
+ ubi8
7
+ ubi9
6
8
isolated_build = True
7
9
requires =
8
10
tox>=4.0.12
@@ -35,3 +37,12 @@ deps = pre-commit>=1.18.1
35
37
extras =
36
38
skip_install = true
37
39
usedevelop = false
40
+
41
+ [testenv:{ubi8,ubi9}]
42
+ description = Building container using beta RPMs (requires VPN) {envname}
43
+ changedir = test/{envname}
44
+ commands =
45
+ podman build --tag adt-{envname} {posargs} .
46
+ podman run -it adt-{envname} adt --version
47
+ allowlist_externals =
48
+ podman
You can’t perform that action at this time.
0 commit comments