[libvirt] [jenkins-ci PATCH v2 5/9] lcitool: force non-interactive apt-get frontend
Daniel P. Berrangé
berrange at redhat.com
Wed Feb 13 17:22:50 UTC 2019
On Wed, Feb 06, 2019 at 05:21:36PM +0100, Andrea Bolognani wrote:
> On Tue, 2019-02-05 at 17:53 +0000, Daniel P. Berrangé wrote:
> [...]
> > if package_format == "deb":
> > sys.stdout.write(textwrap.dedent("""
> > - RUN apt-get update && \\
> > - apt-get dist-upgrade -y && \\
> > - apt-get install -y ${PACKAGES} && \\
> > - apt-get autoremove -y && \\
> > - apt-get autoclean -y
> > + RUN DEBIAN_FRONTEND=noninteractive && \\
> > + ( \\
> > + apt-get update && \\
> > + apt-get dist-upgrade -y && \\
> > + apt-get install -y ${PACKAGES} && \\
> > + apt-get autoremove -y && \\
> > + apt-get autoclean -y \\
> > + )
>
> Wouldn't
>
> RUN export DEBIAN_FRONTEND=noninteractive && \\
> apt-get update && \\
> ...
>
> work as well, without requiring the extra indentation (and shell)?
Oh, true, I could have done that
Regards,
Daniel
--
|: https://berrange.com -o- https://www.flickr.com/photos/dberrange :|
|: https://libvirt.org -o- https://fstop138.berrange.com :|
|: https://entangle-photo.org -o- https://www.instagram.com/dberrange :|
More information about the libvir-list
mailing list