Skip to content

Latest commit

 

History

History
51 lines (33 loc) · 2.35 KB

ReadMe.md

File metadata and controls

51 lines (33 loc) · 2.35 KB

Docker image for dotnet + mono + monogame

Docker Stars Docker Pulls Docker Automated Docker Build Image Version Layers

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