https://github.com/gableroux/docker-dotnet-mono-monogame
Docker image for dotnet + mono + monogame
https://github.com/gableroux/docker-dotnet-mono-monogame
automated-build dockerimage dotnet mono monogame
Last synced: about 1 year ago
JSON representation
Docker image for dotnet + mono + monogame
- Host: GitHub
- URL: https://github.com/gableroux/docker-dotnet-mono-monogame
- Owner: GabLeRoux
- License: mit
- Created: 2019-04-07T22:31:59.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2019-04-08T01:52:40.000Z (about 7 years ago)
- Last Synced: 2025-03-29T15:12:07.055Z (about 1 year ago)
- Topics: automated-build, dockerimage, dotnet, mono, monogame
- Language: Dockerfile
- Homepage: https://cloud.docker.com/repository/docker/gableroux/dotnet-mono-monogame
- Size: 10.7 KB
- Stars: 3
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: ReadMe.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Docker image for dotnet + mono + monogame
[](https://hub.docker.com/r/gableroux/dotnet-mono-monogame)
[](https://hub.docker.com/r/gableroux/dotnet-mono-monogame)
[](https://hub.docker.com/r/gableroux/dotnet-mono-monogame)
[](https://hub.docker.com/r/gableroux/dotnet-mono-monogame)
[](https://microbadger.com/images/gableroux/dotnet-mono-monogame)
[](https://microbadger.com/images/gableroux/dotnet-mono-monogame)
[](https://microbadger.com/images/gableroux/dotnet-mono-monogame)
This is a docker image used to build games created with [monogame](http://www.monogame.net/) using `dotnet` command line. It was inspired by [gmantaos/monogame-docker](https://github.com/gmantaos/monogame-docker) and [CL0SeY/dotnet-mono-docker](https://github.com/CL0SeY/dotnet-mono-docker).
## Examples
### Command line
```bash
docker pull gableroux/dotnet-mono-monogame:latest
docker run --rm -it -v "$PWD:/app" gableroux/dotnet-mono-monogame bash
```
Once inside the container:
```bash
cd /app
dotnet build project_name.csproj
```
### CircleCI
See [./examples/circle.yml](examples/circle.yml) and [./examples/build.sh](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**:
```bash
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](LICENSE.md) © [Gabriel Le Breton](https://gableroux.com)