Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
cal
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
vaclab
cal
Commits
dd4d9b5b
Commit
dd4d9b5b
authored
1 year ago
by
Rolf Niepraschk
Browse files
Options
Downloads
Patches
Plain Diff
Grobe Hinweise zum Ablauf
parent
7db54701
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
DCC-Ablauf.md
+55
-0
55 additions, 0 deletions
DCC-Ablauf.md
with
55 additions
and
0 deletions
DCC-Ablauf.md
0 → 100644
+
55
−
0
View file @
dd4d9b5b
# Ungefährer Ablauf beim Erstellen der DCC-Certificate-Struktur
## Vorbereitung zum lokalen Server-Betrieb
```
python3 -m venv cal
# 'cal' ist das lokale Repositorium
cd cal
source bin/activate
pip install -e .
deactivate
```
## Start des lokalen Servers
```
/bin/bash -l -c 'source bin/activate;./server'
```
Alternative, falls die Umgebungsvariablen
`CAL_USR`
oder
`CAL_PWD`
gesetzt sind:
```
/bin/bash -l -c 'source bin/activate; env -u CAL_USR ./server'
```
## Erstellen der DCC-Certificate-Struktur
### Kommunikation mit dem Server (Beispiel-Kalibrierung):
```
curl http://a73434.berlin.ptb.de:5001/dcc/2024-75570
```
### Ablauf
*
Beschaffen der Kalibrierdokumente (
`server.py`
, Zeilen: 50...59)
*
Erzeugen der DCC-Certificate-Struktur (
`cal/trans.py`
, Zeilen: 133 ff.)
*
Füllen diverser Angaben (
`maintainers`
,
`begin_meas_date`
usw.,
`cal/trans.py`
, Zeilen: 133...140).
*
Struktur
`cert`
mit diversen Einträgen füllen, die für die
Ersetzungsfunktion (
`template.render`
) benötigt werden (
`cal/trans.py`
,
Zeile: 143).
*
Alle relevanten Text-Abschnitte und -Absätze beschaffen und enthaltene
jinja2-Variablen (z.B.
`(((NoOfMeasurements)))`
) durch die konkreten
Werte ersetzen (
`cal/trans.py`
, Zeile: 160). Welche Section-Dateien
relevant sind, ist z.B. in der Datei
`sections-fm1_tlv_flow.json`
aufgeführt. Die dortigen Strings adressieren Verzeichnisse mit
enthaltenen TeX-Templates unterhalb von
`cal/templates/latex/`
.
*
Rückgabe der aufgefüllten DCC-Certificate-Struktur (
`cal/trans.py`
,
Zeile: 162).
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment