Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fedora installer tests #3077

Closed
wants to merge 11 commits into from
5 changes: 5 additions & 0 deletions utils/_context/_scenarios/auto_injection.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
AmazonLinux2DotNet6,
AmazonLinux2amd64,
Centos7amd64,
Fedora39amd64,
OracleLinux92amd64,
OracleLinux92arm64,
OracleLinux88amd64,
Expand Down Expand Up @@ -40,6 +41,7 @@ def __init__(
include_amazon_linux_2023_amd64=False,
include_amazon_linux_2023_arm64=False,
include_centos_7_amd64=False,
include_fedora_39_amd64=False,
include_oraclelinux_9_2_amd64=False,
include_oraclelinux_9_2_arm64=False,
include_oraclelinux_8_8_amd64=False,
Expand Down Expand Up @@ -77,6 +79,8 @@ def __init__(
self.required_vms.append(AmazonLinux2023arm64())
if include_centos_7_amd64:
self.required_vms.append(Centos7amd64())
if include_fedora_39_amd64:
self.required_vms.append(Fedora39amd64())
# Include Oracle Linux (not default vms)
if include_oraclelinux_9_2_amd64:
self.required_vms.append(OracleLinux92amd64())
Expand Down Expand Up @@ -215,6 +219,7 @@ def __init__(
include_amazon_linux_2023_amd64=True,
include_amazon_linux_2023_arm64=True,
include_centos_7_amd64=True,
include_fedora_39_amd64=True,
include_oraclelinux_9_2_amd64=True,
include_oraclelinux_9_2_arm64=True,
include_oraclelinux_8_8_amd64=True,
Expand Down
17 changes: 16 additions & 1 deletion utils/_context/virtual_machines.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
import hashlib

from utils.tools import logger
from utils._context.library_version import Version
from utils import context
from utils.onboarding.debug_vm import extract_logs_to_file

Expand Down Expand Up @@ -345,6 +344,22 @@ def __init__(self, **kwargs) -> None:
)


class Fedora39amd64(_VirtualMachine):
def __init__(sef, **kwargs) -> None:
super().__init__(
"Fedora_39_amd64",
aws_config=_AWSConfig(ami_id="ami-000b124ff0d6fd0a1", ami_instance_type="t2.medium", user="fedora"),
vagrant_config=None,
krunvm_config=None,
os_type="linux",
os_distro="rpm",
os_branch="fedora",
os_cpu="amd64",
default_vm=False,
**kwargs,
)


# Oracle Linux 9.2. Owner oracle, id: 131827586825
class OracleLinux92amd64(_VirtualMachine):
def __init__(self, **kwargs) -> None:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,21 @@
os_distro: rpm
os_branch: centos_7_amd64 # CentOS override
remote-command: |
curl -fsSL https://get.docker.com -o install-docker.sh
curl -fsSL https://get.docker.com -o install-docker.sh
chmod 755 install-docker.sh
sed -i 's/yum config-manager/yum-config-manager/g' install-docker.sh
sed -i 's/yum config-manager/yum-config-manager/g' install-docker.sh
sudo sh install-docker.sh
sudo systemctl start docker
sudo curl -L https://github.com/docker/compose/releases/latest/download/docker-compose-$(uname -s)-$(uname -m) -o /usr/bin/docker-compose && sudo chmod +x /usr/bin/docker-compose && sudo docker-compose --version

- os_type: linux
os_distro: rpm
os_branch: fedora
remote-command: |
sudo dnf config-manager --add-repo https://download.docker.com/linux/fedora/docker-ce.repo
sudo dnf install -y docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
sudo systemctl start docker

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To run the containerized Apss we are using the docker compose. We need to install docker compose

- os_type: linux
os_distro: rpm
os_branch: oracle_linux
Expand Down Expand Up @@ -60,10 +69,11 @@
sudo systemctl enable docker.service
sudo systemctl start docker.service
sudo curl -L https://github.com/docker/compose/releases/latest/download/docker-compose-$(uname -s)-$(uname -m) -o /usr/bin/docker-compose && sudo chmod +x /usr/bin/docker-compose && sudo docker-compose --version

- os_type: linux
os_distro: rpm
remote-command: |
sudo yum -y install docker
sudo systemctl start docker.service
sudo curl -L https://github.com/docker/compose/releases/latest/download/docker-compose-$(uname -s)-$(uname -m) -o /usr/bin/docker-compose && sudo chmod +x /usr/bin/docker-compose && sudo docker-compose --version

Loading