GabLeRoux / docker-dotnet-mono-monogame

Docker image for dotnet + mono + monogame

Home Page:https://cloud.docker.com/repository/docker/gableroux/dotnet-mono-monogame

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

Docker image for dotnet + mono + monogame

https://cloud.docker.com/repository/docker/gableroux/dotnet-mono-monogame

License:MIT License


Languages

Language:Dockerfile 100.0%