Unity3d docker image
About this image
This docker image is based on GitLab CI with Unity3D in Docker.
Linux Unity3d builds are taken from Unity on Linux: Release Notes and Known Issues
Things to consider
This docker image runs in a terminal so you don't have access to the UI. This docker image is intended to run unity commands with the command line. You can use it for running tests and creating builds.
Build the image
docker build -t gableroux/unity3d:latest .
Run the image
docker run -it --rm \ -v "$(pwd):/root/project" \ gableroux/unity3d:latest \ xvfb-run --auto-servernum --server-args='-screen 0 640x480x24' \ /opt/Unity/Editor/Unity -projectPath /root/project
Publish the image to a registry
This requires write rights on the registry, but you could push to your own registry.
docker push gableroux/unity3d:latest
This docker image is intended to be used with gitlab-ci (but may work with other CIs). An example project using unity3d in a docker image can be found at gableroux/unity3d-gitlab-ci-example. Have a look to the