Dome: The Factory Server Management Console
Dome is our new factory management console. On the factory server side, we have different projects responsible for different parts before: Shopfloor, Umpire, DKPS, Instalog, etc. They all have their own ways to manage, and require knowledge of the command line interface. Therefore, Dome was born: management console for all things in just one place, and best of all, it's GUI. In the future, you no longer need to set up Shopfloor, Umpire, or Instalog independently. You set up Dome, and let Dome help you finish all the tasks for you.
You need docker installed on the target computer (which requires internet access for a while).
Recommend to use Ubuntu 16.04.1 server (xenial).
Install Docker:
sudo apt-get update && sudo apt-get install docker.io
Type docker version
and make sure your server version is newer than 1.9.1
Dome is a web-based program, if you want to use it on the same machine, you’ll need the desktop environment. Run
sudo apt-get install ubuntu-desktop chromium-browser
to install the desktop environment and Chromium browser.
Note: the default Docker version shipped with Ubuntu 14.04 is too old. If you really have to use Ubuntu 14.04, you'll have to install newer Docker on it yourself. See https://docs.docker.com/engine/installation/linux/ubuntulinux/
The deployment of all factory server components are managed by a cros_docker.sh
script. To obtain that, you have three choices; just choose one of them:
curl
and base64
then:url=https://chromium.googlesource.com/chromiumos/platform/factory/+/master/setup/cros_docker.sh curl "${url}?format=TEXT" | base64 -d >cros_docker.sh sh ./cros_docker.sh update
git clone https://chromium.googlesource.com/chromiumos/platform/factory cd factory/setup
Now you have ./cros_docker.sh
.
cd
to setup
folder to find the script../cros_docker.sh pull
to download the docker images.cros_docker.sh
and files listed on the screen to the target computer../cros_docker.sh install
to load docker images../cros_docker.sh run
to start Dome containers.Open your browser to port 8000 of the Dome server, and you should see the welcome page. For example, if you're using the same machine and had the desktop environment set up, open the browser to http://localhost:8000
.
The default login credential is admin/test0000. The password can be changed by ./cros_docker.sh passwd
.
The version of server image is tracked inside setup script. To update setup script and server images to latest version, do:
./cros_docker.sh update
Then repeat the steps in “Download and install factory server images” to update Dome.