├── README.md ├── get-unity.sh ├── unity_wrapper.sh ├── Dockerfile └── LICENSE /README.md: -------------------------------------------------------------------------------- 1 | # docker-unity3d 2 | An Unity3D editor image which can be used for continuous integration purposes 3 | -------------------------------------------------------------------------------- /get-unity.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | URL=http://download.unity3d.com/download_unity/linux/ 3 | PKG=unity-editor-5.4.0p1+20160810_amd64.deb 4 | 5 | echo "Downloading Unity3D installer..." 6 | curl -o /app/unity_editor.deb -s "${URL}${PKG}" 7 | echo "Unity3D installer downloaded." -------------------------------------------------------------------------------- /unity_wrapper.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | UNITY_OPTIONS="-batchmode -quit" 3 | 4 | E_NOARGS=85 5 | if [ -z "$1" ] 6 | then 7 | echo "Usage: `basename $0` " 8 | exit $E_NOARGS 9 | fi 10 | 11 | xvfb-run --error-file /var/log/xvfb_error.log --server-args="-screen 0 1024x768x24" \ 12 | /opt/Unity/Editor/Unity $UNITY_OPTIONS $@ -------------------------------------------------------------------------------- /Dockerfile: -------------------------------------------------------------------------------- 1 | FROM ubuntu:14.04.5 2 | RUN apt-get -qq update && apt-get -qq install -y \ 3 | curl gconf-service lib32gcc1 lib32stdc++6 libasound2 libc6 libc6-i386 libcairo2 libcap2 libcups2 libdbus-1-3 libexpat1 libfontconfig1 libfreetype6 libgcc1 libgconf-2-4 libgdk-pixbuf2.0-0 libgl1-mesa-glx libglib2.0-0 libglu1-mesa libgtk2.0-0 libnspr4 libnss3 libpango1.0-0 libstdc++6 libx11-6 libxcomposite1 libxcursor1 libxdamage1 libxext6 libxfixes3 libxi6 libxrandr2 libxrender1 libxtst6 zlib1g debconf npm xdg-utils lsb-release libpq5 xvfb \ 4 | && rm -rf /var/lib/apt/lists/* 5 | RUN mkdir -p /root/.cache/unity3d && mkdir -p /root/.local/share/unity3d 6 | ADD get-unity.sh /app/get-unity.sh 7 | RUN chmod +x /app/get-unity.sh && \ 8 | /app/get-unity.sh && \ 9 | dpkg -i /app/unity_editor.deb && \ 10 | rm /app/unity_editor.deb 11 | ADD unity_wrapper.sh /usr/local/bin/unity_wrapper.sh 12 | RUN chmod +x /usr/local/bin/unity_wrapper.sh -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2017 Eamon Woortman 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | --------------------------------------------------------------------------------