All of lore.kernel.org
 help / color / mirror / Atom feed
From: "罗勇刚(Yonggang Luo)" <luoyonggang@gmail.com>
To: Thomas Huth <thuth@redhat.com>
Cc: "QEMU Trivial" <qemu-trivial@nongnu.org>,
	"Peter Maydell" <peter.maydell@linaro.org>,
	"Paolo Bonzini" <pbonzini@redhat.com>,
	qemu-level <qemu-devel@nongnu.org>,
	"Philippe Mathieu-Daudé" <f4bug@amsat.org>
Subject: Re: [PATCH 1/2] docker: Add win32/msys2/mingw64 docker
Date: Wed, 7 Oct 2020 16:17:57 +0800	[thread overview]
Message-ID: <CAE2XoE9RyMFpLNWP+o13o7NOFXJAChR8Mf4QbF7ON3XRXEbkKA@mail.gmail.com> (raw)
In-Reply-To: <e437f0ed-20a9-c370-8c87-ceb845513805@redhat.com>

[-- Attachment #1: Type: text/plain, Size: 3362 bytes --]

On Wed, Oct 7, 2020 at 2:43 PM Thomas Huth <thuth@redhat.com> wrote:
>
> On 07/10/2020 04.41, Yonggang Luo wrote:
> > This docker is used to preparing a msys2/mingw with basic software
installed.
> >
> > Signed-off-by: Yonggang Luo <luoyonggang@gmail.com>
> > ---
> >  tests/docker/dockerfiles/msys2.docker | 57 +++++++++++++++++++++++++++
> >  1 file changed, 57 insertions(+)
> >  create mode 100644 tests/docker/dockerfiles/msys2.docker
> >
> > diff --git a/tests/docker/dockerfiles/msys2.docker
b/tests/docker/dockerfiles/msys2.docker
> > new file mode 100644
> > index 0000000000..ce1404cbb8
> > --- /dev/null
> > +++ b/tests/docker/dockerfiles/msys2.docker
> > @@ -0,0 +1,57 @@
> > +FROM mcr.microsoft.com/windows/servercore:2004
> > +RUN cmd /S /C powershell -NoLogo -NoProfile -Command netsh interface
ipv4 show interfaces ; netsh interface ipv4 set subinterface 18 mtu=1460
store=persistent ; netsh interface ipv4 show interfaces ;
Set-ExecutionPolicy Bypass -Scope Process -Force; iex ((New-Object
System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))
;
> > +RUN choco install -y --no-progress git 7zip
> > +RUN cmd /S /C powershell -NoLogo -NoProfile -Command Remove-Item
C:\ProgramData\chocolatey\logs -Force -Recurse ; Remove-Item
C:\Users\ContainerAdministrator\AppData\Local\Temp -Force -Recurse
> > +RUN mkdir C:\tools
> > +RUN bitsadmin /transfer msys_download /dynamic /download /priority
FOREGROUND
https://github.com/msys2/msys2-installer/releases/download/2020-09-03/msys2-base-x86_64-20200903.sfx.exe
C:\tools\base.exe
> > +RUN cd /d C:\tools && base.exe -y
> > +RUN cmd /S /C powershell -NoLogo -NoProfile -Command "((Get-Content
-path C:\tools\msys64\etc\\post-install\\07-pacman-key.post -Raw) -replace
'--refresh-keys', '--version') | Set-Content -Path
C:\tools\msys64\etc\\post-install\\07-pacman-key.post"
> > +RUN C:\tools\msys64\usr\bin\bash.exe -lc "sed -i
's/^CheckSpace/#CheckSpace/g' /etc/pacman.conf"
> > +RUN C:\tools\msys64\usr\bin\bash.exe -lc "echo $MSYSTEM" >nul 2>&1
> > +# RUN C:\tools\msys64\usr\bin\bash.exe -lc "sed -i 's/Server =
http:\/\/repo.msys2.org\/msys\/.arch\///g' /etc/pacman.d/mirrorlist.msys"
> > +# RUN C:\tools\msys64\usr\bin\bash.exe -lc "sed -i 's/Server =
http:\/\/repo.msys2.org\/mingw\/i686\///g' /etc/pacman.d/mirrorlist.mingw32"
> > +# RUN C:\tools\msys64\usr\bin\bash.exe -lc "sed -i 's/Server =
http:\/\/repo.msys2.org\/mingw\/x86_64\///g'
/etc/pacman.d/mirrorlist.mingw64"
> > +RUN C:\tools\msys64\usr\bin\bash.exe -lc "grep -rl 'repo.msys2.org/'
/etc/pacman.d/mirrorlist.* | xargs sed -i 's/repo.msys2.org\//
mirrors.tuna.tsinghua.edu.cn\/msys2\//g'"
> > +RUN C:\tools\msys64\usr\bin\pacman.exe --noconfirm -Sy
> > +RUN echo Y | C:\tools\msys64\usr\bin\pacman.exe -Suu --noconfirm
--needed
> > +RUN taskkill /F /FI "MODULES eq msys-2.0.dll"
> > +RUN tasklist
> > +RUN C:\tools\msys64\usr\bin\bash.exe -lc "pacman.exe --noconfirm -S
--needed \
> > +base-devel \
>
> base-devel pulls in a lot of stuff that we do not really need
(automake...),
> can you please replace it with the packages that are really required? See:
OK
>
> https://lists.gnu.org/archive/html/qemu-devel/2020-10/msg00072.html
>
>  Thanks,
>   Thomas
>


--
         此致
礼
罗勇刚
Yours
    sincerely,
Yonggang Luo

[-- Attachment #2: Type: text/html, Size: 4628 bytes --]

  reply	other threads:[~2020-10-07  8:19 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-10-07  2:41 [PATCH 0/2] Improve cirrus msys2 Yonggang Luo
2020-10-07  2:41 ` [PATCH 1/2] docker: Add win32/msys2/mingw64 docker Yonggang Luo
2020-10-07  6:43   ` Thomas Huth
2020-10-07  8:17     ` 罗勇刚(Yonggang Luo) [this message]
2020-10-07  2:41 ` [PATCH 2/2] cirrus: Fixing and speedup the msys2/mingw CI Yonggang Luo
2020-10-07  8:29   ` Daniel P. Berrangé

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=CAE2XoE9RyMFpLNWP+o13o7NOFXJAChR8Mf4QbF7ON3XRXEbkKA@mail.gmail.com \
    --to=luoyonggang@gmail.com \
    --cc=f4bug@amsat.org \
    --cc=pbonzini@redhat.com \
    --cc=peter.maydell@linaro.org \
    --cc=qemu-devel@nongnu.org \
    --cc=qemu-trivial@nongnu.org \
    --cc=thuth@redhat.com \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.