Skip to content

Docker-in-docker feature support for fedora #1328

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

Draft
wants to merge 8 commits into
base: main
Choose a base branch
from

Conversation

sireeshajonnalagadda
Copy link
Contributor

Feature Name

  • Docker-in-docker

Description of Changes

Changelog

  • Modified the install.sh to work the expected installation for Fedora

  • Wrote test case scenarios to meet the required checks for the Docker-in-docker

Checklist

  • [ ☑️ ] Checked that applied changes work as expected

Copy link
Contributor

@Kaniska244 Kaniska244 left a comment

Choose a reason for hiding this comment

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

Hi @sireeshajonnalagadda ,

Left few minor comments. Please let me know incase of further clarifications.

@@ -247,7 +279,7 @@ fi

# Refresh apt lists
apt-get update

fi
Copy link
Contributor

Choose a reason for hiding this comment

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

Please correct the indentation for better readability.

}
# Install dependencies for fedora
if ! command -v git wget which&> /dev/null; then
Copy link
Contributor

Choose a reason for hiding this comment

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

Just out of curiosity, how is this condition only passing for fedora & not for debian or ubuntu?

echo "Running apt-get update..."
apt-get update -y
apt-get install -y gnupg curl
apt-get -y install --no-install-recommends "$@"
fi
Copy link
Contributor

Choose a reason for hiding this comment

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

These installations should not be done in this apt_get_update() function. Would it possible to move them below as part of code in this code, if the package isn't included there already.

@sireeshajonnalagadda
Copy link
Contributor Author

sireeshajonnalagadda commented Apr 16, 2025

Hi @Kaniska244,
Made the changes according to the review comments, please review and let me know in case of any further concerns/clarity.

echo "Installing Moby packages..."
sudo dnf install -y moby-engine moby-cli moby-buildx --skip-unavailable

else
Copy link
Contributor

Choose a reason for hiding this comment

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

Hi @sireeshajonnalagadda ,

When does the code inside this else condition get executed ? I see here this install_docker_or_moby function called only when USE_MOBY flag is set to true. Please let me know if I am missing something.

"features": {
"docker-in-docker": {
"iptables": "true",
"moby": "true",
Copy link
Contributor

Choose a reason for hiding this comment

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

Hi @sireeshajonnalagadda ,

We should have another test case also with "moby": "false" for fedora

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants