8000 GitHub - amitie10g/docker-msys2: Attemp to build a Dockerfile with msys2.
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

amitie10g/docker-msys2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MSYS2 Docker image under Windows

This is an attemp to bring the latest MSYS2 base under under Microsoft® Windows® Server Docker image, intended to be used in my own projects.

Currently, only Server Core is supported, as MSYS executables are unable to run under Nano Server; please see this issue for further information.

Usage

MSYS (default) interactive shell

docker run -it --volume=host-src:container-dest --workdir="container-dest" amitie10g/msys2

MinGW64 interactive shell

docker run -e MSYSTEM=MINGW64 --volume=host-src:container-dest --workdir="container-dest" amitie10g/msys2

MinGW32 interactive shell

docker run -e MSYSTEM=MINGW32 --volume=host-src:container-dest --workdir="container-dest" amitie10g/msys2

CMD interactive shell

docker run --volume=host-src:container-dest --workdir="container-dest" amitie10g/msys2 cmd

Powershell interactive shell

docker run --volume=host-src:container-dest --workdir="container-dest" amitie10g/msys2 powershell

You may use the shell of your preference by issuing your alternative CMD. For instance, Bash (bash) is the default CMD and shell; you may choose the Windows CMD (cmd) or Powershell (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.

Using this base image

Dockerfile

ARG VERSION=21H2
FROM amitie10g/msys2:$VERSION

<your code>

Command line

docker build --build-arg WINDOWS_VERSION=21H2 -t <your tag> .

Caveats

Due the Windows Server Core base image, this image is HUGE. I'm researching how to use Nano Server instead.

Licensing

  • The Dockerfile has been released into the public domain (the Unlicense)
  • The MSYS2 packages are licensed under several licenses. Please refer to them
  • The Windows-based container base image usage is subjected to the Microsoft EULA

About

Attemp to build a Dockerfile with msys2.

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 
0