debuerreotype / docker-debian-artifacts

Official builds of debuerreotype-generated Debian tarballs for use in Docker
https://docker.debian.net
Apache License 2.0
317 stars 104 forks source link

please add sudo #142

Closed tjaalton closed 3 years ago

tjaalton commented 3 years ago

Guess I'm just trying my luck here, but would it be possible to include sudo in the 'fat' image? Azure pipelines require it in order to install packages to the image..

tianon commented 3 years ago

These images are (as of Bullseye) a faithful debootstrap --variant=minbase. Given the nature of container layering, things like sudo are pretty easy to add, but are impossible to actually remove if they're added at a lower level.

If Azure doesn't give you a means by which to build a custom image including sudo directly in your pipeline, I would suggest creating/maintaining one with something even as simple as the following, which should be reasonably easy to keep up to date:

FROM debian:bullseye
RUN apt-get update && apt-get install -y sudo
tjaalton commented 3 years ago

and that's what I've done, but it's pretty silly to have to do that

Fedora has sudo on their images, but oh well