You can use Docker Hub to install Unity AcceleratorThe Unity Accelerator is an external tool that provides an asset cache that keeps copies of a team’s imported assets. The goal of the Accelerator is to speed up teamwork and reduce iteration time by coordinating asset sharing so that you don’t need to reimport portions of your project. More info
See in Glossary with the following link: https://hub.docker.com/r/unity/accelerator
To host Unity Accelerator’s configuration and cache, you must set up a persistent storage area. To set this up, use one or more of the following variables when running the container for the first time. The variables are only used if the startup doesn’t find a configuration file so it’s safe to run with them on successive runs.
Variable | Description |
---|---|
DISABLE_USAGE_STATS |
Set to true to disable usage stats. Leaving usage stats enabled can help improve Unity Accelerator’s features and performance by giving Unity feedback. |
USER |
The username for the local built-in dashboard. |
PASSWORD |
The password for the local built-in dashboard. |
CERT_HOSTNAME |
The host name to use for TLS support. This is used for redirects and goes along with CERT_PEM and KEY_PEM below. |
CERT_PEM |
The path to a cert.pem to use for TLS support. If you set CERT_HOSTNAME but don’t set CERT_PEM , <persist_dir>/cert.pem will be assumed. |
KEY_PEM |
The path to a key.pem to use for TLS support. If you set CERT_HOSTNAME but don’t set KEY_PEM , <persist_dir>/key.pem will be assumed. |
To configure TLS settings, ensure the cert.pem and key.pem is in the /agent path specified and then include a CERT_HOSTNAME
like the following:
$ docker run --rm -ti -v "${PWD}/agent:/agent" -e 'CERT_HOSTNAME=myhostname.com' -e unitytechnologies/accelerator:latest
You can also set any environment variables for the cache server. Use unity-accelerator --all-help
and look for options that indicate Default: $SOME_VARIABLE
. There are two that the container sets if you don’t:
Variable | Description |
---|---|
UNITY_ACCELERATOR_PERSIST |
Container default is /agent. This is the directory where unity-accelerator.cfg resides as well as other persisted data (cachedir possibly being different). |
UNITY_ACCELERATOR_LOG_STDOUT |
Container default is true. When true, outputs logs to stdout only. When false, writes logs to the persist directory. |
Unity’s Docker images are signed, so it’s best practice to enable Docker Content Trust:
$ export DOCKER_CONTENT_TRUST=1
You can run Unity Accelerator with the following:
$ docker run -p 80:80 -p 443:443 -p 10080:10080 -v "${PWD}/agent:/agent" unitytechnologies/accelerator:latest
However, If you want to choose a different location for where Unity Accelerator stores the configuration and cached artifacts, you can choose to provide additional environment variable configuration values like this:
$ docker run -p 80:80 -p 443:443 -p 10080:10080 -v "${PWD}/agent:/mnt/another_spot" -e "UNITY_ACCELERATOR_PERSIST=/mnt/another_spot" -e "UNITY_ACCELERATOR_DEBUG=true" unitytechnologies/accelerator:latest
To set a username and password for local dashboard, you can use USER
and PASSWORD
environment variables:
$ docker run -p 80:80 --env PASSWORD=[PASSWORD] --env USER=[USERNAME] unitytechnologies/accelerator:latest
The following are the default values for ports used by Unity Accelerator:
Did you find this page useful? Please give it a rating:
Thanks for rating this page!
What kind of problem would you like to report?
Thanks for letting us know! This page has been marked for review based on your feedback.
If you have time, you can provide more information to help us fix the problem faster.
Provide more information
You've told us this page needs code samples. If you'd like to help us further, you could provide a code sample, or tell us about what kind of code sample you'd like to see:
You've told us there are code samples on this page which don't work. If you know how to fix it, or have something better we could use instead, please let us know:
You've told us there is information missing from this page. Please tell us more about what's missing:
You've told us there is incorrect information on this page. If you know what we should change to make it correct, please tell us:
You've told us this page has unclear or confusing information. Please tell us more about what you found unclear or confusing, or let us know how we could make it clearer:
You've told us there is a spelling or grammar error on this page. Please tell us what's wrong:
You've told us this page has a problem. Please tell us more about what's wrong:
Thank you for helping to make the Unity documentation better!
Your feedback has been submitted as a ticket for our documentation team to review.
We are not able to reply to every ticket submitted.