You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

51 lines
2.0 KiB

  1. # Name of snap as registered in the store
  2. name: seaweedfs
  3. # Automatically derive snap version from git tags
  4. version: git
  5. # Short human readable name as seen in 'snap find $SNAPNAME'
  6. summary: SeaweedFS
  7. # Longer multi-line description found in 'snap info $SNAPNAME'
  8. description: |
  9. SeaweedFS is a simple and highly scalable distributed file system.
  10. There are two objectives: to store billions of files! to serve the
  11. files fast! SeaweedFS implements an object store with O(1) disk seek,
  12. and an optional Filer with POSIX interface.
  13. # Grade is stable for snaps expected to land in the stable channel
  14. grade: stable
  15. # Uses the strict confinement model and uses interfaces to open up access to
  16. # resources on the target host
  17. confinement: strict
  18. # List of parts which comprise the snap
  19. parts:
  20. # The main part which defines how to build the application in the snap
  21. seaweedfs:
  22. # This part needs a newer version of golang, so we use a separate part
  23. # which defines how to get a newer golang during the build
  24. after: [go]
  25. # The go plugin knows how to build go applications into a snap
  26. plugin: go
  27. # Snapcraft will look in this location for the source of the application
  28. source: .
  29. go-importpath: github.com/chrislusf/seaweedfs
  30. go:
  31. # Defines the version of golang which will be bootstrapped into the snap
  32. source-tag: go1.10.4
  33. # Apps exposes the binaries inside the snap to the host system once installed
  34. apps:
  35. # We expose the weed command.
  36. # This differs from the snap name, so it will be namespaced as seaweedfs.weed
  37. # An alias can be added to expose this as 'weed' if requested in the snapcraft forum
  38. weed:
  39. # The path to the binary inside the snap, relative to the $SNAP home
  40. command: bin/weed
  41. # Plugs connect the snap to resources on the host system. We enable network connectivity
  42. # We also add home and removable-media (latter not autoconnected by default)
  43. # so users can access files in their home or on removable disks
  44. plugs:
  45. - network
  46. - network-bind
  47. - home
  48. - removable-media