aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Pope <alan.pope@canonical.com>2018-10-30 12:21:27 +0000
committerGitHub <noreply@github.com>2018-10-30 12:21:27 +0000
commit12797ec3adfd883f729b492e5c633ee5f97ed616 (patch)
treeba2e01b9cfc5571735d7a71183d936cf3c2cad89
parent79371c03a8e056b694490fd6434268a54b0d509d (diff)
downloadseaweedfs-12797ec3adfd883f729b492e5c633ee5f97ed616.tar.xz
seaweedfs-12797ec3adfd883f729b492e5c633ee5f97ed616.zip
Create snapcraft.yaml
-rw-r--r--snap/snapcraft.yaml51
1 files changed, 51 insertions, 0 deletions
diff --git a/snap/snapcraft.yaml b/snap/snapcraft.yaml
new file mode 100644
index 000000000..6198cfb3c
--- /dev/null
+++ b/snap/snapcraft.yaml
@@ -0,0 +1,51 @@
+# Name of snap as registered in the store
+name: seaweedfs
+# Automatically derive snap version from git tags
+version: git
+# Short human readable name as seen in 'snap find $SNAPNAME'
+summary: SeaweedFS
+# Longer multi-line description found in 'snap info $SNAPNAME'
+description: |
+ SeaweedFS is a simple and highly scalable distributed file system.
+ There are two objectives: to store billions of files! to serve the
+ files fast! SeaweedFS implements an object store with O(1) disk seek,
+ and an optional Filer with POSIX interface.
+
+# Grade is stable for snaps expected to land in the stable channel
+grade: stable
+# Uses the strict confinement model and uses interfaces to open up access to
+# resources on the target host
+confinement: strict
+
+# List of parts which comprise the snap
+parts:
+ # The main part which defines how to build the application in the snap
+ seaweedfs:
+ # This part needs a newer version of golang, so we use a separate part
+ # which defines how to get a newer golang during the build
+ after: [go]
+ # The go plugin knows how to build go applications into a snap
+ plugin: go
+ # Snapcraft will look in this location for the source of the application
+ source: .
+ go-importpath: github.com/chrislusf/seaweedfs
+ go:
+ # Defines the version of golang which will be bootstrapped into the snap
+ source-tag: go1.10.4
+
+# Apps exposes the binaries inside the snap to the host system once installed
+apps:
+ # We expose the weed command.
+ # This differs from the snap name, so it will be namespaced as seaweedfs.weed
+ # An alias can be added to expose this as 'weed' if requested in the snapcraft forum
+ weed:
+ # The path to the binary inside the snap, relative to the $SNAP home
+ command: bin/weed
+ # Plugs connect the snap to resources on the host system. We enable network connectivity
+ # We also add home and removable-media (latter not autoconnected by default)
+ # so users can access files in their home or on removable disks
+ plugs:
+ - network
+ - network-bind
+ - home
+ - removable-media