gableroux/dotnet-mono-monogame

By gableroux

Updated almost 6 years ago

Image

274

Docker image for dotnet + mono + monogame

Docker StarsDocker PullsDocker AutomatedDocker BuildImageVersionLayers

This is a docker image used to build games created with monogame using dotnet command line. It was inspired by gmantaos/monogame-docker and CL0SeY/dotnet-mono-docker.

Examples

Command line
docker pull gableroux/dotnet-mono-monogame:latest
docker run --rm -it -v "$PWD:/app" gableroux/dotnet-mono-monogame bash

Once inside the container:

cd /app
dotnet build project_name.csproj
CircleCI

See ./examples/circle.yml and ./examples/build.sh

Troubleshooting

Error : Importer 'WavImporter' had unexpected failure! [...] build/MGCB/build/ffprobe [...] Native error= Access denied

This seems to be a problem with nuget monogame installation during the restore command. It doesn't restore the executable mode on ffmpeg and ffprobe command lines.

workaround:

chmod +x /root/.nuget/packages/monogame.content.builder/3.7.0.4/build/MGCB/build/ffprobe
chmod +x /root/.nuget/packages/monogame.content.builder/3.7.0.4/build/MGCB/build/ffmpeg

Run these two commands right after the restore command.

License

MIT © Gabriel Le Breton

Docker Pull Command

docker pull gableroux/dotnet-mono-monogame