├── README.md └── 5.4.1f1 └── Dockerfile /README.md: -------------------------------------------------------------------------------- 1 | # Unity3D on Docker 2 | 3 | Puts the Unity3D editor on Ubuntu Linux in a Docker image, suitable for 4 | 5 | * running continuous integration tasks 6 | * and building your release artefacts. 7 | 8 | Versions on Docker Hub: 9 | 10 | * [5.4.1f1][541f1] (about 6gb compressed, so if you have a means of 11 | locally caching the image on your CI/build server, I suggest you do so). 12 | 13 | If you need another version of Unity, check that a Linux version exists 14 | on the [Unity3D forums][uty0], then copy the nearest version directory 15 | and modify the `Dockerfile` to match the version you want. Try building 16 | the image - if it works, make a pull request. If it doesn't, you might 17 | make one anyway so we can all work through the problem. 18 | 19 | If you have a better method of making these images, make a pull request. 20 | 21 | If you know how to set up an automated build on Docker Hub so that 22 | pushes to this repo trigger new builds, and that's something important 23 | to you, I'd love to pair with you for a half hour to set it up. 24 | 25 | [uty0]: http://forum.unity3d.com/threads/unity-on-linux-release-notes-and-known-issues.350256/ 26 | [541f1]: https://hub.docker.com/r/mysteriouspants/unity-5.4.1f1/ 27 | -------------------------------------------------------------------------------- /5.4.1f1/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM ubuntu 2 | 3 | # alter this when you need to bump the Unity version. Pick a version from 4 | # http://forum.unity3d.com/threads/unity-on-linux-release-notes-and-known-issues.350256/ 5 | # and copy this file to an appropriately named directory 6 | ENV UNITY_VERSION 5.4.1f1+20160913_amd64 7 | 8 | RUN apt-get update && apt-get install -y \ 9 | gconf-service \ 10 | lib32gcc1 \ 11 | lib32stdc++6 \ 12 | libasound2 \ 13 | libc6 \ 14 | libc6-i386 \ 15 | libcairo2 \ 16 | libcap2 \ 17 | libcups2 \ 18 | libdbus-1-3 \ 19 | libexpat1 \ 20 | libfontconfig1 \ 21 | libfreetype6 \ 22 | libgcc1 \ 23 | libgconf-2-4 \ 24 | libgdk-pixbuf2.0-0 \ 25 | libgl1-mesa-glx \ 26 | libglib2.0-0 \ 27 | libglu1-mesa \ 28 | libgtk2.0-0 \ 29 | libnspr4 \ 30 | libnss3 \ 31 | libpango1.0-0 \ 32 | libstdc++6 \ 33 | libx11-6 \ 34 | libxcomposite1 \ 35 | libxcursor1 \ 36 | libxdamage1 \ 37 | libxext6 \ 38 | libxfixes3 \ 39 | libxi6 \ 40 | libxrandr2 \ 41 | libxrender1 \ 42 | libxtst6 \ 43 | zlib1g \ 44 | debconf \ 45 | npm \ 46 | xdg-utils \ 47 | lsb-release \ 48 | libpq5 \ 49 | xvfb 50 | 51 | ADD http://download.unity3d.com/download_unity/linux/unity-editor-$UNITY_VERSION.deb . 52 | RUN dpkg -i unity-editor-$UNITY_VERSION.deb 53 | RUN rm unity-editor-$UNITY_VERSION.deb 54 | --------------------------------------------------------------------------------