FORUM CTRLX AUTOMATION
ctrlX World Partner Apps for ctrlX AUTOMATION
Dear Community User! We have started the migration process.
This community is now in READ ONLY mode.
Read more: Important
information on the platform change.
11-08-2021 08:57 AM
Hello together,
I am currently designing the architecture for our ctrlX apps.
Unfortunately, I don't have much experience with snap containers.
Can you answer the following basic questions?
- Currently, our services communicate locally via named pipes. Under Unix, these named pipes are created in the /tmp directory. Can different apps access the /tmp directory from the host? Or is this only possible if, after installing the app, additional rights are granted on the host via the sudo user?
- Is it the case that an app can only be installed once per ctrlX device and therefore only one instance of a snap container can run?
Thank you in advance
Solved! Go to Solution.
11-09-2021 12:01 PM - edited 11-22-2021 02:36 PM
As long as all your services are in the same snap they can access the pipe created by each other. Each snap has its own /tmp folder.
When using several snaps you could e.g. add a contend interface to each and exchange the pipes via that interface. This would be the same way we do with the Data Layer.
Snaps are identified by their name so there can only be one installed at the same time. In each snap their can be several services.
For general information have a look to the page of canonical.