-
Notifications
You must be signed in to change notification settings - Fork 196
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CI: add github action build profile and push images
Signed-off-by: Jordi Massaguer Pla <[email protected]>
- Loading branch information
1 parent
f8840a3
commit c50f6f2
Showing
14 changed files
with
233 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 15 additions & 0 deletions
15
testsuite/features/profiles/github_runner/Docker/Dockerfile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
FROM localhost:5002/opensuse/leap:15.4 | ||
MAINTAINER Admin User "[email protected]" | ||
|
||
ARG repo | ||
ARG cert | ||
|
||
RUN echo "$cert" > /etc/pki/trust/anchors/RHN-ORG-TRUSTED-SSL-CERT.pem | ||
RUN update-ca-certificates | ||
RUN echo "$repo" > /etc/zypp/repos.d/susemanager:dockerbuild.repo | ||
|
||
ADD nsswitch.conf /etc/nsswitch.conf | ||
ADD avahi-daemon.conf /root/avahi-daemon.conf | ||
|
||
ADD add_packages.sh /root/add_packages.sh | ||
RUN /root/add_packages.sh |
15 changes: 15 additions & 0 deletions
15
testsuite/features/profiles/github_runner/Docker/add_packages.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#!/bin/bash | ||
set -e | ||
|
||
cp /root/avahi-daemon.conf /etc/avahi/avahi-daemon.conf | ||
/usr/sbin/avahi-daemon -D | ||
|
||
# do the real test | ||
zypper --non-interactive --gpg-auto-import-keys ref | ||
zypper --non-interactive in | ||
|
||
zypper --non-interactive in hoag-dummy orion-dummy | ||
zypper --non-interactive up milkyway-dummy | ||
|
||
# kill avahi | ||
/usr/sbin/avahi-daemon -k |
19 changes: 19 additions & 0 deletions
19
testsuite/features/profiles/github_runner/Docker/authprofile/Dockerfile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# Container used to test Content Management feature | ||
# | ||
# VERSION 1.0.0 | ||
|
||
FROM localhost:5001/cucutest/systemsmanagement/uyuni/master/docker/containers/uyuni-master-testsuite | ||
MAINTAINER Michael Calmer "[email protected]" | ||
|
||
ARG repo | ||
ARG cert | ||
|
||
RUN echo "$cert" > /etc/pki/trust/anchors/RHN-ORG-TRUSTED-SSL-CERT.pem | ||
RUN update-ca-certificates | ||
RUN echo "$repo" > /etc/zypp/repos.d/susemanager:dockerbuild.repo | ||
|
||
ADD nsswitch.conf /etc/nsswitch.conf | ||
ADD avahi-daemon.conf /root/avahi-daemon.conf | ||
|
||
ADD add_packages.sh /root/add_packages.sh | ||
RUN /root/add_packages.sh |
13 changes: 13 additions & 0 deletions
13
testsuite/features/profiles/github_runner/Docker/authprofile/add_packages.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#!/bin/bash | ||
set -e | ||
|
||
cp /root/avahi-daemon.conf /etc/avahi/avahi-daemon.conf | ||
/usr/sbin/avahi-daemon -D | ||
|
||
# do the real test | ||
zypper --non-interactive --gpg-auto-import-keys ref | ||
zypper --non-interactive in hoag-dummy orion-dummy | ||
zypper --non-interactive up milkyway-dummy | ||
|
||
# kill avahi | ||
/usr/sbin/avahi-daemon -k |
25 changes: 25 additions & 0 deletions
25
testsuite/features/profiles/github_runner/Docker/authprofile/avahi-daemon.conf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
[server] | ||
host-name=container | ||
domain-name=tf.local | ||
use-ipv4=yes | ||
use-ipv6=yes | ||
ratelimit-interval-usec=1000000 | ||
ratelimit-burst=1000 | ||
enable-dbus=no | ||
|
||
[wide-area] | ||
enable-wide-area=yes | ||
|
||
[publish] | ||
publish-hinfo=no | ||
publish-workstation=no | ||
|
||
[reflector] | ||
|
||
[rlimits] | ||
rlimit-core=0 | ||
rlimit-data=4194304 | ||
rlimit-fsize=0 | ||
rlimit-nofile=768 | ||
rlimit-stack=4194304 | ||
rlimit-nproc=3 |
17 changes: 17 additions & 0 deletions
17
testsuite/features/profiles/github_runner/Docker/authprofile/nsswitch.conf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
passwd: compat | ||
group: compat | ||
|
||
hosts: files mdns [NOTFOUND=return] dns | ||
networks: files dns | ||
|
||
services: files | ||
protocols: files | ||
rpc: files | ||
ethers: files | ||
netmasks: files | ||
netgroup: files nis | ||
publickey: files | ||
|
||
bootparams: files | ||
automount: files nis | ||
aliases: files |
25 changes: 25 additions & 0 deletions
25
testsuite/features/profiles/github_runner/Docker/avahi-daemon.conf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
[server] | ||
host-name=container | ||
domain-name=tf.local | ||
use-ipv4=yes | ||
use-ipv6=yes | ||
ratelimit-interval-usec=1000000 | ||
ratelimit-burst=1000 | ||
enable-dbus=no | ||
|
||
[wide-area] | ||
enable-wide-area=yes | ||
|
||
[publish] | ||
publish-hinfo=no | ||
publish-workstation=no | ||
|
||
[reflector] | ||
|
||
[rlimits] | ||
rlimit-core=0 | ||
rlimit-data=4194304 | ||
rlimit-fsize=0 | ||
rlimit-nofile=768 | ||
rlimit-stack=4194304 | ||
rlimit-nproc=3 |
17 changes: 17 additions & 0 deletions
17
testsuite/features/profiles/github_runner/Docker/nsswitch.conf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
passwd: compat | ||
group: compat | ||
|
||
hosts: files mdns [NOTFOUND=return] dns | ||
networks: files dns | ||
|
||
services: files | ||
protocols: files | ||
rpc: files | ||
ethers: files | ||
netmasks: files | ||
netgroup: files nis | ||
publickey: files | ||
|
||
bootparams: files | ||
automount: files nis | ||
aliases: files |
19 changes: 19 additions & 0 deletions
19
testsuite/features/profiles/github_runner/Docker/serverhost/Dockerfile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# Container used to test Content Management feature | ||
# | ||
# VERSION 1.0.0 | ||
|
||
FROM localhost:5002/cucutest/systemsmanagement/uyuni/master/docker/containers/uyuni-master-testsuite | ||
MAINTAINER Michael Calmer "[email protected]" | ||
|
||
ARG repo | ||
ARG cert | ||
|
||
RUN echo "$cert" > /etc/pki/trust/anchors/RHN-ORG-TRUSTED-SSL-CERT.pem | ||
RUN update-ca-certificates | ||
RUN echo "$repo" > /etc/zypp/repos.d/susemanager:dockerbuild.repo | ||
|
||
ADD nsswitch.conf /etc/nsswitch.conf | ||
ADD avahi-daemon.conf /root/avahi-daemon.conf | ||
|
||
ADD add_packages.sh /root/add_packages.sh | ||
RUN /root/add_packages.sh |
13 changes: 13 additions & 0 deletions
13
testsuite/features/profiles/github_runner/Docker/serverhost/add_packages.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#!/bin/bash | ||
set -e | ||
|
||
cp /root/avahi-daemon.conf /etc/avahi/avahi-daemon.conf | ||
/usr/sbin/avahi-daemon -D | ||
|
||
# do the real test | ||
zypper --non-interactive --gpg-auto-import-keys ref | ||
zypper --non-interactive in hoag-dummy orion-dummy | ||
zypper --non-interactive up milkyway-dummy | ||
|
||
# kill avahi | ||
/usr/sbin/avahi-daemon -k |
25 changes: 25 additions & 0 deletions
25
testsuite/features/profiles/github_runner/Docker/serverhost/avahi-daemon.conf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
[server] | ||
host-name=container | ||
domain-name=tf.local | ||
use-ipv4=yes | ||
use-ipv6=yes | ||
ratelimit-interval-usec=1000000 | ||
ratelimit-burst=1000 | ||
enable-dbus=no | ||
|
||
[wide-area] | ||
enable-wide-area=yes | ||
|
||
[publish] | ||
publish-hinfo=no | ||
publish-workstation=no | ||
|
||
[reflector] | ||
|
||
[rlimits] | ||
rlimit-core=0 | ||
rlimit-data=4194304 | ||
rlimit-fsize=0 | ||
rlimit-nofile=768 | ||
rlimit-stack=4194304 | ||
rlimit-nproc=3 |
17 changes: 17 additions & 0 deletions
17
testsuite/features/profiles/github_runner/Docker/serverhost/nsswitch.conf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
passwd: compat | ||
group: compat | ||
|
||
hosts: files mdns [NOTFOUND=return] dns | ||
networks: files dns | ||
|
||
services: files | ||
protocols: files | ||
rpc: files | ||
ethers: files | ||
netmasks: files | ||
netgroup: files nis | ||
publickey: files | ||
|
||
bootparams: files | ||
automount: files nis | ||
aliases: files |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters