From ce57c4b92dbea9374c1cbe4635bfc6ad1f08de03 Mon Sep 17 00:00:00 2001 From: neelxie Date: Wed, 17 Jan 2024 13:55:34 +0300 Subject: [PATCH 1/2] Add provision for a snap --- snap/snapcraft.yaml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 snap/snapcraft.yaml diff --git a/snap/snapcraft.yaml b/snap/snapcraft.yaml new file mode 100644 index 0000000..33805b4 --- /dev/null +++ b/snap/snapcraft.yaml @@ -0,0 +1,24 @@ +name: cranecloud # you probably want to 'snapcraft register ' +base: core20 # the base snap is the execution environment for this snap +version: '1.0' # just for humans, typically '1.2+git' or '1.3.2' +summary: This is a Crane Cloud Command Line Client # 79 char long summary +description: | + Crane Cloud is an open source multi-cloud service layer for deployment + and management of Cloud Native applications. Crane Cloud provides compute, + network and storage services without vendor lock-in. + + We have created a Command Line Interface (CLI) client which is a command + line tool registered users can use for interacting with the Cranecloud platform. + +grade: devel # must be 'stable' to release into candidate/stable channels +confinement: devmode # use 'strict' once you have the right plugs and slots + +parts: + my-part: + # See 'snapcraft plugins' + plugin: python + source: . + +apps: + cranecloud: + command: bin/cranecloud From dcf3407fd9c57e2be4cd11cd6263b3c39b4c0e00 Mon Sep 17 00:00:00 2001 From: neelxie Date: Thu, 18 Jan 2024 11:10:49 +0300 Subject: [PATCH 2/2] Add new changes for prod --- snap/snapcraft.yaml | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) diff --git a/snap/snapcraft.yaml b/snap/snapcraft.yaml index 33805b4..77d4b4b 100644 --- a/snap/snapcraft.yaml +++ b/snap/snapcraft.yaml @@ -1,6 +1,6 @@ name: cranecloud # you probably want to 'snapcraft register ' base: core20 # the base snap is the execution environment for this snap -version: '1.0' # just for humans, typically '1.2+git' or '1.3.2' +version: "1.0" # just for humans, typically '1.2+git' or '1.3.2' summary: This is a Crane Cloud Command Line Client # 79 char long summary description: | Crane Cloud is an open source multi-cloud service layer for deployment @@ -11,7 +11,7 @@ description: | line tool registered users can use for interacting with the Cranecloud platform. grade: devel # must be 'stable' to release into candidate/stable channels -confinement: devmode # use 'strict' once you have the right plugs and slots +confinement: strict # use 'strict' once you have the right plugs and slots parts: my-part: @@ -19,6 +19,23 @@ parts: plugin: python source: . +plugs: + crane-data: + interface: personal-files + read: + - $HOME/crane + write: + - $HOME/crane +slots: + dbus-svc: + bus: session + interface: dbus + name: io.cranecloud.app + apps: cranecloud: command: bin/cranecloud + slots: [dbus-svc] + plugs: + - network + - crane-data