diff options
| author | Chris Lu <chrislusf@users.noreply.github.com> | 2020-03-12 12:45:26 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-03-12 12:45:26 -0700 |
| commit | c3226ce75adc152a30f0e2065130b92561b4da84 (patch) | |
| tree | abd03f2a81e3ea8598dd49f624bcfec804c0d8f5 | |
| parent | e85da50ad4933da86b1098bb3e84d01f6c469e0b (diff) | |
| parent | 12797ec3adfd883f729b492e5c633ee5f97ed616 (diff) | |
| download | seaweedfs-c3226ce75adc152a30f0e2065130b92561b4da84.tar.xz seaweedfs-c3226ce75adc152a30f0e2065130b92561b4da84.zip | |
Merge pull request #758 from popey/add-snapcraft
Create snapcraft.yaml
| -rw-r--r-- | snap/snapcraft.yaml | 51 |
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 |
