Git Product home page Git Product logo

docker-msys2's Introduction

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

docker-msys2's People

Contributors

amitie10g avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

abenevaut

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.