#!/usr/bin/env bash

command_exists() { type "$1" &>/dev/null; }

if command_exists "dnf"; then
    sudo dnf install podman -y
    systemctl enable --now --user podman

    # install docker-compose
    sudo dnf config-manager addrepo --from-repofile https://download.docker.com/linux/fedora/docker-ce.repo
    sudo dnf install docker-compose
fi