Skip to content

reszelaz/leap-control

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 

Repository files navigation

leap-control

Docker image configuration for a basic control system stack based on Sardana & Tango on openSUSE Leap.

How to run it?

Run it in detached mode and later on execute bash in order to play with it.

docker run -d --name=leap-control -v /sys/fs/cgroup:/sys/fs/cgroup:ro \
           -e QT_X11_NO_MITSHM=1 -e DISPLAY=$DISPLAY -v /tmp/.X11-unix:/tmp/.X11-unix \
           --cap-add=SYS_PTRACE reszelaz/leap-control
xhost +local:
docker exec -it leap-control bash

Some command details:

  • cgroups directory is mounted so the systemd can launch the services e.g. mysql (see link for more details)
  • In order to use the host's X server (be able to run GUI) we need to grant local access to host's X, export the DISPLAY environment variable and mount the X11 socket directory. Additionally to launch QT apps, we need to export the QT_X11_NO_MITSHM var (see link for more details).
  • SYS_PTRACE capability is added so the init scripts can run the daemon process with user different than root (see link for more details)

How to start the control system?

# start the mysql database
systemctl start mysql
# create the tando database in the mysql
/usr/share/tango-db/create_db.sh
# start the DataBaseds server
systemctl start tango-db
# start the Starter server
systemctl start tango-starter

About

Basic control system stack based on Tango and Sardana

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published