Skip to content

Commit 5c1924b

Browse files
committed
Improving documentation
1 parent 4e91c2f commit 5c1924b

File tree

1 file changed

+89
-0
lines changed

1 file changed

+89
-0
lines changed

README.md

Lines changed: 89 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,95 @@
11
# docker-compose-ops
22

33
This repository aims to gather all different docker-compose configurations to be used in operations. This is an on going project.
4+
45
File setup.env has all the environment variables that each docker-compose in this repo may need, specific setup.env can be created in each directory to add more specific details for a given implementation.
56

67
File setup.env needs to be sourced from the root directory of this repo.
8+
9+
Current directory tree:
10+
11+
.
12+
├── AT_CSC
13+
│ ├── ATDome
14+
│ │ └── docker-compose.yaml
15+
│ └── Hexapod
16+
│ ├── docker-compose.yaml
17+
│ ├── startCSC.sh
18+
│ ├── startGUI.sh
19+
│ └── tcpConfiguration.yaml
20+
├── AT_EFD
21+
│ ├── docker-compose.yaml
22+
│ ├── efd_population.sh
23+
│ └── efd_writers.sh
24+
├── AT_Simulators
25+
│ └── docker-compose.yaml
26+
├── README.md
27+
├── ospl.xml
28+
└── setup.env
29+
30+
This aims to gather all the containers that may run in different nodes.
31+
32+
The file **setup.env** has several variables defined that are used by pretty much all the docker-compose definitions, such that if you modify those variables once, all the other definitions will act accordingly.
33+
34+
To configure your environment to properly use these docker compose, just source setup.env.
35+
36+
$ source setup.env
37+
38+
However if you happen to need different values of the same variable, you can always create other files within child directories and source those. You can also just export a varaible in the bash and will also work.
39+
40+
Below some of the definitions in setup.env file:
41+
42+
# The path in where the ospl.xml you want to use into the container is
43+
export OSPL_CONFIG_PATH=$PWD/ospl.xml
44+
# Path in where the custom ospl.xml will land
45+
export OSPL_MOUNT_POINT=/home/saluser/ospl.xml
46+
# Updating the ospl.uri to use the customized ospl.xml
47+
export OSPL_URI=file://$OSPL_MOUNT_POINT
48+
# The DDS domain the containers will be using
49+
export LSST_DDS_DOMAIN=atsimulatorcsc
50+
# The host in where the EFD Writers will find its DB. This is mostly for MySQL
51+
export LSST_EFD_HOST=139.229.162.118
52+
53+
# AT_CSC
54+
55+
AT_CSC aims to gather all the CSCs related with the Auxiliary Telescope, within that directory we have listed initially **ATDome** and **Hexapod**
56+
57+
## ATDome
58+
It is using the following image: lsstts/at_dome_sim:3.9-0.5, using the default entrypoint.
59+
60+
## Hexapod
61+
It is using image: lsstts/ts_athexapod, it has to definitions, one for the CSC and the other to lunch a GUI. The display variable defined in the GUI container must be pointed to the host that will receive the image, if that will be your computer, then write your IP in that variable. Entrypoints has been modified, the CSC is starting with a custom scripts called startCSC.sh whereas the GUI container is starting with a custom script called startGUI.sh. Those scripts has all the required configuration plus starting the software we need from the container.
62+
63+
# AT_EFD
64+
65+
Here you will find several scripts that allows you to start containerized version of an EFD, currently is only configured to have MySQL onine. Below a briew description of the services created and how are meant to be used.
66+
67+
* EFD_Updater: Used to populate the EFD with SQL queries.
68+
* EFD_MariaDB: This container starts a MariaDB instance that is configured from the EFD_Updater to have the EFD DB created plus all the necessary configurations/table creation.
69+
* EFD_ATDome: This service is starting all the writers related with the ATDome.
70+
* EFD_ATHexapod: This service is starting all the writers related with the ATHexapod.
71+
* EFD_ATMCS: This service is starting all the writers related with ATMCS
72+
* EFD_ATptg: This service is starting all the writers related with the pointing kernel
73+
* EFD_ATDomeTrajectory: This service is starting all the writers related with the Dome Trajectory
74+
* EFD_ATPneumatics: This service is starting all the writers related with the AT Pneumatics
75+
* EFD_ATAOS: This service is starting all the writers related with the AT AOS.
76+
77+
All the efdwriters are being started by a shell script called efd_writers.sh, which launches the 3 writers in the background with the exception of the last one to keep the container alive.
78+
79+
# AT_Simulators
80+
This compose has several definitions for CSC/Simulators that can be used to test communication back and forth. Below a list of available containers and their respective images:
81+
82+
* atmcs-sim:
83+
* image: lsstts/at_mcs_sim:3.9-0.4
84+
* atdome-sim:
85+
* image: lsstts/at_dome_sim:3.9-0.5
86+
* atdometrajectory-sim:
87+
* image: lsstts/at_dome_trajectory_sim:3.9-0.6a
88+
* atpneumatics-sim:
89+
* image: lsstts/at_pneumatics_sim:3.9-0.2
90+
* ataos-sim:
91+
* image: lsstts/ataos:v0.2.1
92+
* atptg-sim:
93+
* image: tiagorib/ptkernel:new_xml
94+
* simulation-tests:
95+
* image: lsstts/simulation_tests:latest

0 commit comments

Comments
 (0)