Comments (1)
It would be a nice addition to the Docker images indeed. π
Here is how we can add VisionPro Module Support to Docker Images:
-
Identifying Unity Versions with VisionPro Support
Unityβs official support for VisionPro is available starting from Unity version 2022.3.18f1 according to the "Official Support for visionOS Now Available" Thread. This release is compatible with visionOS 1.0 and Xcode 15.2.
-
Add VisionPro Module Support
We can add VisionPro module support to the Dockerfile like this:
diff --git a/images/ubuntu/editor/Dockerfile b/images/ubuntu/editor/Dockerfile index 63b6977..a68e29f 100644 --- a/images/ubuntu/editor/Dockerfile +++ b/images/ubuntu/editor/Dockerfile @@ -32,6 +32,10 @@ RUN echo "$version-$module" | grep -q -vP '^(2021.2.(?![0-4](?![0-9]))|2021.[3-9 && exit 0 \ || unity-hub install-modules --version "$version" --module "windows-server" --childModules | tee /var/log/install-module-windows-server.log && grep 'Missing module' /var/log/install-module-windows-server.log | exit $(wc -l); +RUN echo "$version-$module" | grep -q -vP '^(2022\.3\.(1[8-9]|[2-9][0-9])|202[3-9]|[6-9][0-9]{0,2})f.*visionos' \ + && exit 0 \ + || unity-hub install-modules --version "$version" --module "visionos" --childModules | tee /var/log/install-module-visionos.log && grep 'Missing module' /var/log/install-module-visionos.log | exit $(wc -l); + ########################### # Editor # ###########################
The above regex should correctly match these:
- Unity 2022.3.18f1 and above
- All versions from 2023 onward
- Unity 6 and above
Note: I am not sure if the regex part is necessary. It might be possible to just add the
visionos
module without checking the version. -
Manually Build the Image
We can manually build the image like this (inspired by the OP's suggestion):
docker build --platform linux/amd64 --build-arg="version=2022.3.18f1" --build-arg="module=visionos" .
We should confirm that this works as expected, but I would assume it does, according to the issue description.
-
Automatic publishing of the images
This
game-ci/docker
project is linked to game-ci/versioning-backend hosted on Firebase which triggers jobs when new versions are detected on Unity's archive page. Here is a brief overview of how this works:- Unity Version Ingest: Detects new Unity versions and adds them to the database.
- Docker Version Ingest: Similar process for Docker versions.
- Scheduler: Triggers a CI job for each new version detected, which in turn creates multiple CI builds for each base OS-target platform combination.
We can find details about the scheduler here
Each CI build starts with the status
started
and is updated as the build progresses. The final status ispublished
once the build is successfully completed. Completed CI jobs are reported to Discord.Now the part I'm not sure about is how to ensure that the
module
gets passed correctly by the backend. From what I understand, this is where themodule
is received from the backend:So we need to ensure that
targetPlatform
is correctly set tovisionos
in the backend. -
Trigger the CI job
Once the module support is added in the game-ci/docker project and the versioning backend, we can trigger the jobs to build the images. I think there's a way to trigger the CI jobs manually. If I remember well, there is also a scheduled job. -
Test the new image
It would be preferable to create a sample Unity project and test the new image (using the new targetPlatform) against it.
Contributions are welcomed π
from docker.
Related Issues (20)
- Support for Windows Server 2022 HOT 1
- Build fails for editor-ubuntu-2023.1.0f1-webgl-1.1.2 with URP
- Update ubuntu version from 18.04 to 22.04 HOT 3
- Manifest unknown for certain images on unityci/editor but not for others. HOT 2
- Stop supporting EOL versions of Unity Editor
- manifest for unityci/editor:2022.3.8f1-linux-il2cpp-1 not found HOT 1
- manifest for unityci/editor:windows-2021.3.16f1-webgl-2 not found HOT 1
- "Build succeeded" but still getting "There was an error..." HOT 1
- Pass env vars set in workflow file to docker environment HOT 6
- Fail to build containers because of failing git lfs checkout HOT 2
- docker: invalid reference format: repository name must be lowercase. HOT 4
- Unable to Generate Logs and Hanging Execution with unityci/editor Docker Image on Mac with Apple Silicon HOT 1
- xvfb-run is not invoked as root user when using runAsHostUser
- GameCI WebGL builds have no audio. HOT 1
- Licensing issue with non root user
- Intermittent crashes when running unity builds on docker. HOT 2
- Dedicated Server support for Linux is not installed after updating from 2022.3.16f1 to 6000.0.0f1 HOT 9
- Error when pulling ci editor image for version 2022.3.29.f1 HOT 2
- Missing `libpulse.so.0` causes test failure when using FMOD HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from docker.