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
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.
docker build -t gableroux/unity3d:latest .
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
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 .gitlab-ci.yml
.