-
Notifications
You must be signed in to change notification settings - Fork 0
Unity Docker
Alex Feinstein edited this page Apr 26, 2020
·
2 revisions
https://gitlab.com/gableroux/unity3d
https://hub.docker.com/r/gableroux/unity3d
gableroux/unity3d:<unity_version>[-component]
Examples:
- gableroux/unity3d:2020.1.0b5-linux-il2cpp
- gableroux/unity3d:2018.4.21f1-ios
- gableroux/unity3d:2020.1.0b5-android
- gableroux/unity3d:2020.1.0b5-webgl
- gableroux/unity3d:2019.3.9f1-mac
- gableroux/unity3d:2020.1.0b5-windows
- gableroux/unity3d:2019.3.9f1
Unity supports manual offline activation
https://docs.unity3d.com/Manual/ManualActivationGuide.html
- Generate the license request file
/opt/Unity/Editor/Unity \
-nographics \
-batchmode \
-logFile /dev/stdout \
-createManualActivationFile
- Download the License file using the Request file. https://license.unity3d.com/
- Use License file. Unity places License into special directory.
/opt/Unity/Editor/Unity \
-nographics \
-batchmode \
-logfile /dev/stdout \
-manualLicenseFile <yourulffile>
- It is possible to manually put license file into a directory instead.
mkdir -p /root/.cache/unity3d
mkdir -p /root/.local/share/unity3d/Unity/
cat "${UNITY_LICENSE_FILE}" | tr -d '\r' > /root/.local/share/unity3d/Unity/Unity_lic.ulf
- After Unity has been activated
# TEST_PLATFORM should be 'editmode' or 'playmode'
/opt/Unity/Editor/Unity \
-nographics \
-batchmode \
-verbose \
-projectPath $(pwd) \
-runTests \
-testPlatform "${TEST_PLATFORM}" \
-testResults "$(pwd)/${TEST_PLATFORM}-results.xml" \
-logFile /dev/null \