[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [PATCH] CI: Clean up alpine containers
On Fri, Feb 18, 2022 at 01:18:11PM +0000, Andrew Cooper wrote: > * `apk --no-cache` is the preferred way of setting up containers, and it does > shrink the image by a few MB. > * Neither container needs curl-dev. > * Flex and bison are needed for Xen, so move to the Xen block. > > Signed-off-by: Andrew Cooper <andrew.cooper3@xxxxxxxxxx> > --- > CC: Doug Goldstein <cardoe@xxxxxxxxxx> > CC: Wei Liu <wl@xxxxxxx> > CC: Anthony PERARD <anthony.perard@xxxxxxxxxx> > CC: Roger Pau Monné <roger.pau@xxxxxxxxxx> > CC: Stefano Stabellini <sstabellini@xxxxxxxxxx> > > I've already rebuilt the containers and confirmed that the build is still > fine. > --- > diff --git a/automation/build/alpine/3.12-arm64v8.dockerfile > b/automation/build/alpine/3.12-arm64v8.dockerfile > index a1ac9605959e..006cdb3668b3 100644 > --- a/automation/build/alpine/3.12-arm64v8.dockerfile > +++ b/automation/build/alpine/3.12-arm64v8.dockerfile > @@ -8,46 +8,39 @@ RUN mkdir /build > WORKDIR /build > > # build depends > -RUN \ > - # apk > - apk update && \ > +RUN apk --no-cache add \ > \ > # xen build deps > - apk add argp-standalone && \ > - apk add autoconf && \ > - apk add automake && \ > - apk add bash && \ > - apk add curl && \ > - apk add curl-dev && \ > - apk add dev86 && \ > - apk add dtc-dev && \ > - apk add gcc && \ > + argp-standalone \ > + autoconf \ > + automake \ Since you are removing some other pkgs, I don't think "automake" is needed either. We only use "autoconf" and "autoheader". (Maybe the automake pkg give access to something we need, but I'm not sure about that.) In any case, changes looks good: Reviewed-by: Anthony PERARD <anthony.perard@xxxxxxxxxx> Thanks, -- Anthony PERARD
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |