-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Albrecht Johannes (DC-AE/ESW1)
committed
Apr 30, 2024
1 parent
9c6236a
commit d8fbc51
Showing
240 changed files
with
18,789 additions
and
16,535 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
# Document Overview | ||
|
||
This document is part of the Bosch Rexroth ctrlX OS App Development Guideline, and describes specific topics for Apps which are based on the Docker container technology | ||
|
||
Please refer to the App Development Guide for further information about general requirements and checks | ||
|
||
The content of this document may be subject of change in future. | ||
|
||
|
||
# 1. Artifacts / Files | ||
|
||
In addition to a native Ubuntu Core App, a Docker App shall provide the files in this list | ||
|
||
| Files | Description | Value(s) | Optional / Mandatory | | ||
| --- | --- | --- |--- | | ||
| Docker-compose.yml | The docker-compose.yml file contains the configuration and options to run the services required by the snap | docker-compose.yml | Mandatory | ||
| Docker-compose.env | The docker-compose.env file contains the environment variable(s) set to run the snaps | docker-compose.env |Optional | | ||
|
||
# 2. Base Checks | ||
|
||
## 2.1 snapcraft yaml / snap.yaml | ||
|
||
In addition to the checks for snap.yaml which are described [here](appdevguide_basechecks.md), a Docker App has additional elements: | ||
|
||
| Item | Content | Optional / Mandatory | | ||
| --- | --- | --- | | ||
| docker-compose | configuration file | Mandatory | | ||
| docker-volumes | manage app data | Mandatory | | ||
|
||
The mandatory entries must be provided like the following: | ||
```yaml | ||
parts: | ||
docker-compose: | ||
plugin: dump | ||
source: ./docker-compose | ||
organize: | ||
'*': docker-compose/${SNAPCRAFT_PROJECT_NAME}/ | ||
slots: | ||
docker-compose: | ||
interface: content | ||
content: docker-compose | ||
source: | ||
read: | ||
- $SNAP/docker-compose/${SNAPCRAFT_PROJECT_NAME} | ||
docker-volumes: | ||
interface: content | ||
content: docker-volumes | ||
source: | ||
write: | ||
- $SNAP_DATA/docker-volumes/${SNAPCRAFT_PROJECT_NAME} | ||
|
||
``` | ||
## 2.2 docker-compose.yml | ||
| Item | Content | Optional / Mandatory | | ||
| --- | --- | --- | | ||
| version | version of the docker-compose | Mandatory | | ||
| services | information about the docker images, like image name, container name, used ports, required volumes etc. | Mandatory | | ||
| volumes | mounted volumes | Optional | | ||
| ports | described ports are not conflicting with standard/blocked ports. and app uses only described ports | Optional | | ||
|
||
|
||
Note: For example, here you can find information about syntax of a compose file: https://github.com/compose-spec/compose-spec/blob/master/spec.md | ||
|
||
## 2.3 docker-compose.env | ||
|
||
This file is optional and provides all environment variables which are used in the docker-compose.yml | ||
|
||
| Item | Content | Optional / Mandatory | | ||
| --- | --- | --- | | ||
| variables | All variables in docker-compose.yml are provided here | Optional | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
This document is part of the Bosch Rexroth ctrlX OS App Development Guideline, and describes how a ctrlX OS App can integrate in the ctrlX OS System Report | ||
|
||
Please refer to the App Development Guide for further information. | ||
|
||
The content of this document may be subject of change in future. | ||
|
||
|
||
# Introduction | ||
The ctrlX OS system report is provided as zip file. ctrlX OS Apps can participate in this mechanism and provide their own log information and other files. | ||
This document describes, which interfaces are available in ctrlX OS to automatically add App specific information to the system report. | ||
|
||
**Note**: This mechanism is available in ctrlX OS 1.20 or higher | ||
|
||
# Integration in the ctrlX OS System Report | ||
|
||
## Information in snapcraft.yaml | ||
|
||
- "**apps**" section: add "package-run" to the slots of your service(s) that will add files to the system report | ||
- "**slots**" section: add the "package-run" sections as described below: | ||
|
||
```yaml | ||
|
||
apps: | ||
... | ||
my-service: | ||
slots: [..., package-run, ...] | ||
|
||
... | ||
|
||
slots: | ||
... | ||
package-run: | ||
interface: content | ||
content: package-run | ||
source: | ||
write: | ||
- $SNAP_DATA/package-run/${SNAPCRAFT_PROJECT_NAME} | ||
|
||
``` | ||
|
||
## Files for System Report | ||
|
||
The files, which will be part of the System Report, will be provided in this directory: | ||
|
||
```yaml | ||
$SNAP_DATA/package-run/$SNAP_INSTANCE_NAME/logs | ||
``` | ||
- Access mode for files: 0644 | ||
- Access mode for the directory: 0755 | ||
|
||
|
||
# Example | ||
With | ||
```yaml | ||
$SNAP_INSTANCE_NAME: my-snap | ||
$SNAP_DATA: /var/snap/my-snap/current | ||
``` | ||
and the directory structure | ||
```yaml | ||
drwxr-xr-x root root /var/snap/my-snap/current | ||
drwxr-xr-x root root /var/snap/my-snap/current/package-run | ||
drwxr-xr-x root root /var/snap/my-snap/current/package-run/my-snap | ||
drwxr-xr-x root root /var/snap/my-snap/current/package-run/my-snap/logs | ||
-rw-r--r-- root root /var/snap/my-snap/current/package-run/my-snap/logs/my-log-file.log | ||
drwxr-xr-x root root /var/snap/my-snap/current/package-run/my-snap/logs/my-dir | ||
-rw-r--r-- root root /var/snap/my-snap/current/package-run/my-snap/logs/my-dir/my-other-file.dat | ||
drwxr-xr-x root root /var/snap/my-snap/current/package-run/my-snap/logs/my-empty-dir | ||
``` | ||
the following files and directories are added to the system report: | ||
|
||
```yaml | ||
my-log-file.log | ||
my-dir/my-other-file.dat | ||
my-empty-dir | ||
``` |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number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Y4MTI4NWI2YjQxZmRh | ||
NmRkMjAzMjQxYjNlMAoGCCqGSM49BAMCA4GMADCBiAJCARRiylrQsc5YMHgWx+9V | ||
WZORk3DU5qevwJJP5HPJoAhICrBLiZf3OYGxjBRjkqi/N/u7RkQiJiUnXMCdmys7 | ||
5PZwAkIBBe/SDUY3U8kayGASML1ndMXKrP3cjK1ic2hDIcFiezKS2P1if4EA12mu | ||
huxkG4mtcCsQ1h6OGDXHSq8/qTJ2tME= | ||
-----END CERTIFICATE----- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 0 additions & 20 deletions
20
doc/common.log.diagnosis/diagnosis_templates/TEMPLATE_detailed_diag.cpp
This file was deleted.
Oops, something went wrong.
13 changes: 0 additions & 13 deletions
13
doc/common.log.diagnosis/diagnosis_templates/TEMPLATE_detailed_diag.h
This file was deleted.
Oops, something went wrong.
18 changes: 0 additions & 18 deletions
18
doc/common.log.diagnosis/diagnosis_templates/TEMPLATE_main_diag.cpp
This file was deleted.
Oops, something went wrong.
13 changes: 0 additions & 13 deletions
13
doc/common.log.diagnosis/diagnosis_templates/TEMPLATE_main_diag.h
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.