Skip to content

Commit ced4db6

Browse files
authored
Update README with details on mysql setup (#21)
* Update README with details on mysql setup * instructions for qcg
1 parent 9f31a01 commit ced4db6

1 file changed

Lines changed: 22 additions & 6 deletions

File tree

README.md

Lines changed: 22 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,20 +6,26 @@ A CC7 machine or a mac.
66

77
## Setup
88

9-
We use alibuild, see complete instructions [here](https://alice-doc.github.io/alice-analysis-tutorial/building/) and install O2 (no need to `init` it, just `build` it).
9+
1. Install O2
10+
* We use alibuild, see complete instructions [here](https://alice-doc.github.io/alice-analysis-tutorial/building/) and install O2 (no need to `init` it, just `build` it).
11+
12+
2. Install the MySQL/MariaDB development package
13+
* CC7 : `sudo yum install mariadb-server`
14+
* Mac (or download the dmg from Oracl) : `brew install mysql`
1015

11-
Build/install the QualityControl package : `aliBuild init QualityControl ; aliBuild build QualityControl --defaults o2`
16+
3. Build/install the QualityControl package : `aliBuild init QualityControl ; aliBuild build QualityControl --defaults o2`
1217

13-
Also build/install the qcg package : `aliBuild build qcg --default o2`
18+
4. Build/install the qcg (GUI) package : `aliBuild build qcg --default o2`
1419

15-
Note that you can also use the `defaults` called `o2-dataflow`.
20+
Note that you can also use the `alibuild defaults` called `o2-dataflow`.
1621

1722
### Post installation
1823

1924
Start and populate database :
2025

2126
```
22-
sudo systemctl start mariadb
27+
sudo systemctl start mariadb # for CC7, check for your specific OS
28+
alienv enter qcg/latest
2329
qcDatabaseSetup.sh
2430
```
2531

@@ -47,7 +53,7 @@ most of their definition.
4753
className=AliceO2::QualityControlModules::Example::ExampleTask
4854
moduleName=QcExample # which library contains the class
4955
cycleDurationSeconds=1
50-
```
56+
```
5157

5258
The source of the data is defined here :
5359

@@ -132,6 +138,16 @@ qcSpy
132138
qcCheckerLauncher -c file:///absolute/path/to/example-default.ini -n checker_0
133139
```
134140

141+
### QCG (Web QC GUI)
142+
143+
To run :
144+
```
145+
alienv enter qcg/latest-o2
146+
tobject2json --backend mysql://qc_user:qc_user@localhost/quality_control --zeromq-server tcp://127.0.0.1:7777
147+
qcg
148+
```
149+
Then open your browser at `localhost:8080`.
150+
135151
### Readout chain
136152

137153
1. Modify the config file of readout (Readout/configDummy.cfg) :

0 commit comments

Comments
 (0)