From: Yann E. MORIN <yann.morin.1998@free.fr>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH 4/5] support/docker: add an Arch image
Date: Sun, 15 Jul 2018 11:05:39 +0200 [thread overview]
Message-ID: <20180715090539.GA2516@scaer> (raw)
In-Reply-To: <F34B3E21-3366-44DD-891B-401FF71F20E9@free.fr>
Martin, All,
So, I see that K9mail put the saultations at the end of the mail, which
is quite odd... Anyway, let me expand further on my previous reply...
On 2018-07-14 12:01 +0000, Yann E. MORIN spake thusly:
> On July 14, 2018 11:19:10 AM UTC, Martin Bark <martin@barkynet.com> wrote:
> >On 13 July 2018 at 07:38, Yann E. MORIN <yann.morin.1998@free.fr>
> >wrote:
> >> Hopefully, this image is reproducible", since we are using a tagged
> >> base image, plus a pinned repository mirror.
[--SNIP--]
> >It's best practice to combine the update and install from a package
> >manger in one line. So this should be
>
> Please see:
>
> https://git.busybox.net/buildroot/commit/support/docker/Dockerfile?id=c4f844ff3212266f845ea812da2a8647a9f1e13
So, the reasoning is that, since we use a pinned version of the
repository, running "pacman -Sy --noconfirm" will always yield the same
state of the distribution.
Now, it happens that we need to add a new package to the image, e.g. for
local testing. We can thus re-use the intermediate, locally-cached image
that has the local repository updated.
It kinda speeds up things a bit.
> >RUN echo
> >'Server=https://archive.archlinux.org/repos/2018/07/01/$repo/os/$arch'
> >\
> > > /etc/pacman.d/mirrorlist && \
> > pacman -Sy --noconfirm \
> >
> >> +# Pin the repository to a known version
> >> +RUN echo
> >'Server=https://archive.archlinux.org/repos/2018/07/01/$repo/os/$arch'
> >\
> >> + > /etc/pacman.d/mirrorlist && \
> >> + pacman -Sy
> >> +RUN pacman --noconfirm -S \
> >> + bc \
> >> + bzr \
> >> + cvs \
> >> + cpio \
> >> + flake8 \
> >> + git \
> >> + mercurial \
> >> + python \
> >> + python-nose2 \
> >> + python-pexpect \
> >> + qemu \
> >> + qemu-arch-extra \
> >
> >If you change to using qemu-headless and qemu-headless-arch-extra
> >packages it saves about 500MB on the image size
Ah, that one is interesting to know! :-)
However, are we sure that we don;t need the headed version of qemu?
And why do we even have to have qemu in the image to start with, in the
end?
Regards,
Yann E. MORIN.
> >Thanks
> >
> >Martin
> >
> >> + rsync \
> >> + subversion \
> >> + unzip \
> >> + wget
> >> +
> >> +RUN sed -i 's/# *\(en_US.UTF-8\)/\1/' /etc/locale.gen \
> >> + && /usr/sbin/locale-gen
> >> +
> >> +RUN useradd -ms /bin/bash br-user
> >> +
> >> +USER br-user
> >> +WORKDIR /home/br-user
> >> +ENV HOME /home/br-user
> >> +ENV LC_ALL en_US.UTF-8
> >> --
> >> 2.14.1
> >>
> >> _______________________________________________
> >> buildroot mailing list
> >> buildroot at busybox.net
> >> http://lists.busybox.net/mailman/listinfo/buildroot
>
> Martin, All,
> --
> Sent from my phone. Please excuse my brevity.
--
.-----------------.--------------------.------------------.--------------------.
| Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software Designer | \ / CAMPAIGN | ___ |
| +33 223 225 172 `------------.-------: X AGAINST | \e/ There is no |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v conspiracy. |
'------------------------------^-------^------------------^--------------------'
next prev parent reply other threads:[~2018-07-15 9:05 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-07-13 6:38 [Buildroot] [PATCH 0/5] support/docker: add new dockers Yann E. MORIN
2018-07-13 6:38 ` [Buildroot] [PATCH 1/5] core: add a rule to generate all our docker images Yann E. MORIN
2018-07-16 0:39 ` Ricardo Martincoski
2018-07-13 6:38 ` [Buildroot] [PATCH 2/5] support/docker: rename the Dockerfile and its accompanying file Yann E. MORIN
2018-07-16 0:44 ` Ricardo Martincoski
2018-07-13 6:38 ` [Buildroot] [PATCH 3/5] support/docker: add a Fedore-28 based image Yann E. MORIN
2018-07-16 0:48 ` Ricardo Martincoski
2018-07-13 6:38 ` [Buildroot] [PATCH 4/5] support/docker: add an Arch image Yann E. MORIN
2018-07-14 11:19 ` Martin Bark
2018-07-14 12:01 ` Yann E. MORIN
2018-07-15 9:05 ` Yann E. MORIN [this message]
2018-07-15 19:30 ` Martin Bark
2018-07-15 19:45 ` Yann E. MORIN
2018-07-16 0:13 ` Martin Bark
2018-07-16 16:15 ` Yann E. MORIN
2018-07-13 6:38 ` [Buildroot] [PATCH 5/5] support/docker: add an Alpine-3.7 based image Yann E. MORIN
2018-07-14 11:19 ` Martin Bark
2018-07-16 1:05 ` Ricardo Martincoski
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20180715090539.GA2516@scaer \
--to=yann.morin.1998@free.fr \
--cc=buildroot@busybox.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox