FORUM CTRLX AUTOMATION
ctrlX World Partner Apps for ctrlX AUTOMATION
Dear Community User! We are updating our platform to a new
system.
Read more: Important
information on the platform change.
08-18-2020 08:37 AM - last edited on 09-18-2020 11:00 AM by ThorstenX
I am trying to get our webpage on the CtrlX home page. I have followed the description within our internal docupedia documentation.
[Content removed by Community Team]
but no such luck. After installation of our snap, nothing changes on the home page of the device.
Anybody any idea what I am doing wrong?
Thank you,
Kees Schoenmaker
I am using the following snapcraft.yaml and package-manifest.json files:
===== snapcraft.yaml =======
name: s2sadapter
base: core18 # the base snap is the execution environment for this snap
architectures:
- build-on: all
run-on: arm64
version: '0.4.8' # just for humans, typically '1.2+git' or '1.3.2'
summary: Bosch System 2 System Adapter # 79 char long summary
description: |
Bosch System2SystemAdapter bla bla
grade: devel # must be 'stable' to release into candidate/stable channels
#confinement: strict # use 'strict' once you have the right plugs and slots
confinement: devmode # use 'strict' once you have the right plugs and slots
#grade: devel # must be 'stable' to release into candidate/stable channels
#confinement: devmode # use 'strict' once you have the right plugs and slots
parts:
s2sadapter:
plugin: dump
source: publish_0813_3
source-type: local
# source: S2SLinuxArm64.zip
# source-type: zip
configs:
source: ./configs
plugin: dump
apps:
driverhandler:
command: Bosch.System2SystemAdapter.DriverHandler
plugs: [network, network-bind, network-observe, process-control] # daemon: simple
environment:
DOTNET_SYSTEM_GLOBALIZATION_INVARIANT: "true"
# CORE_LIBRARIES: "/snap/s2sadapter/current"
service:
command: Bosch.System2SystemAdapter.S2SAdapterService
plugs: [network, network-bind, network-observe, process-control] # daemon: simple
environment:
DOTNET_SYSTEM_GLOBALIZATION_INVARIANT: "true"
# DOTNET_SYSTEM_NET_HTTP_USESOCKETSHTTPHANDLER: "false"
# CORE_LIBRARIES: "/snap/s2sadapter/current"
slots:
package-assets:
id: s2sadapter
manifest: package-manifest.json
interface: content
content: package-assets
source:
read:
- $SNAP/package-assets/${SNAPCRAFT_PROJECT_NAME}
# - $SNAP
package-run:
interface: content
content: package-run
source:
write:
- $SNAP_DATA/package-run/${SNAPCRAFT_PROJECT_NAME}
==============
===== package-manifest.json =======
{
"version":"1.0.1",
"id":"s2sadapter",
"services":{
"proxyMapping":[
{
"name":"s2sadapter",
"url":"/s2sadapter",
"binding":"http://localhost:8081"
}
]
},
"menus": {
"sidebar": [
{
"id": "s2sadapter",
"title": "S2SAdapter",
"icon": "bosch-ic-hierarchy",
"permissions": [
],
"items": [
{
"id": "s2s-admin",
"title": "Administration",
"link": "/s2sadapter",
"permissions": []
},
{
"id": "s2s-dashboard",
"title": "Dashboard",
"link": "s2sadapter",
"permissions": []
}
]
}
],
"settings" : []
"overview": [
{
"id": "s2s-dashboard",
"title": "S2S Dashboard",
"icon": "bosch-ic-hierarchy",
"link": "/s2sadapter",
"permissions": []
}
]
}
}
======================
Solved! Go to Solution.
09-04-2020 02:26 PM
Hi,
whats your way installing the snap? Maybe the package-manifest interface is not connected?
Regards
Johannes
01-22-2021 11:12 AM
Please have a look after installing into the diagnoostic logbook. There you will get some more information, what propably went wrong.