DEPRECATED, use amitie10g/msys2-mingw-w64-toolchain
3.3K
This is an attemp to bring Mingw w64 toolchain (i686 and X86-64) under Microsoft Windows Server Docker image, intended to be used in my own projects.
This comes with the two toolchains: x86_64 and i686.
Currently, only Server Core is supported, as MSYS executables are unable to run under Nano Server.
The tags belong to the Windows version. Available tags are:
20H2
2004 (latest)
1909
1903
ltsc2019
20H2-i686
20H2-i686
2004-i686 (i686)
1909-i686
1903-i686
ltsc2019-i686
MSYS Bash interactive shell (default)
docker run -it --volume=host-src:container-dest --workdir="container-dest" amitie10g/mingw-w64-toolchain
x86_64 toolchain using make install
docker run -e MSYSTEM=MINGW64 --volume=host-src:container-dest --workdir="container-dest" amitie10g/mingw-w64-toolchain make install
i686 toolchain using make install
docker run -e MSYSTEM=MINGW32 -e --volume=host-src:container-dest --workdir="container-dest" amitie10g/mingw-w64-toolchain make install
Windows CMD interactive shell
docker run -it --volume=host-src:container-dest --workdir="container-dest" amitie10g/mingw-w64-toolchain cmd
Windows Powershell interactive shell
docker run -it --volume=host-src:container-dest --workdir="container-dest" amitie10g/mingw-w64-toolchain powershell
If you want to use the MinGW32 environment, you must append C:\msys64\mingw32\bin(under CMD shell) to the PATH environment at runtime, or set in an Entrypoint script.
The default workdir is C:\msys64. Set another workdir is recommended only for runing non-interactive building process like make.
ARG VERSION=latest
FROM amitie10g/mingw-w64-toolchain:$VERSION
<your code>
x86_64 toolchain
docker build --build-arg -t <your tag> .
i686 toolchain
docker build --build-arg VERSION=i686 -t <your tag> .
This image depends on the MSYS2 base image (Dockerfile), where the following packages are installed:
Due the Windows Server Core base image, this image is HUGE. I'm researching how to use Nano Server instead.
Content type
Image
Digest
Size
2.5 GB
Last updated
over 5 years ago
docker pull amitie10g/mingw-w64-toolchain