Skip to content

GabLeRoux/docker-dotnet-mono-monogame

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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