This project allows one to deploy TANGO Controls in a distributed setup using Docker containers.
Following hosts are configured:
- mariad_db
- Maria database
- databaseds
- DataBaseds
- Starter
- TangoAccessControl
- tangotest
- Starter
- TangoTest
- taurus
- Starter
- Taurus
Make sure you have required software:
Clone the repository and type and start docker-compose:
$ git clone https://github.com/synchrotron-solaris/tango-workspace.git
$ cd tango-workspace; docker-compose up
Check addresses of your containers:
$ ./status.sh
databaseds.workspace is running on: 172.18.0.3:10000
mtango.workspace is running on: 172.18.0.5:8080
Remember, in docker-compose.yml
, taurus section, you have to set DISPLAY
to your_ip_addres:0
You should also have started some kind of X server (i.e. Xming for Windows). For Xming, start XLaunch (not Xming) and tick option 'No Acces control'.
Shutdown the cluster when you are done:
$ docker-compose down
If you want the database persistent, just uncomment the following line in
docker-compose.yml
:
- ./.data/mysql:/var/lib/mysql
If you encounter problems with starting one of those containers, change in
docker-compose.yml
those relative directories
./.config/initdb:/docker-entrypoint-initdb.d:ro
./.config/supervisord:/etc/supervisor/init.d:ro
to absolute ones, i.e.
C:/Users/docker_repo/tango-workspace/.config/initdb:/docker-entrypoint-initdb.d:ro
C:/Users/docker_repo/tango-workspace/.config/supervisord:/etc/supervisor/init.d:ro