Skip to content

Add fedora:41-ci CI image with sudo userΒ #118

@abitrolly

Description

@abitrolly

For CI systems it is beneficial to have an image that comes with default user other than root. The user should have sudo enabled though, for easy package installation.

Right now the user needs to be created manually.

adduser fedora -G wheel

sudo under this user still asks for a password. This won't work for CI.

EDIT: Disable sudo password for fedora user.

echo "fedora       ALL=(ALL)       NOPASSWD: ALL" > /etc/sudoers.d/fedora

This still doesn't work well for CI, because now every user command needs to be run as sudo -u fedora <command>.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions