18ff7a79cc
Snaps set a custom $HOME, but we were using /etc/passwd. There might be other cases were using a custom $HOME might be handy. In UNIX systems, $HOME should be always set. For all the rest, we fall back to the original os/user.HomeDir method. License: MIT Signed-off-by: Hector Sanjuan <hector@protocol.ai>
36 lines
965 B
YAML
36 lines
965 B
YAML
name: ipfs-cluster
|
|
version: master
|
|
summary: Collective pinning and composition for IPFS
|
|
description: |
|
|
ipfs-cluster allows to replicate content (by pinning) in multiple IPFS nodes.
|
|
|
|
confinement: strict
|
|
|
|
apps:
|
|
service:
|
|
command: ipfs-cluster-service
|
|
plugs: [home, network, network-bind]
|
|
aliases: [ipfs-cluster-service]
|
|
ctl:
|
|
command: ipfs-cluster-ctl
|
|
plugs: [network]
|
|
aliases: [ipfs-cluster-ctl]
|
|
|
|
parts:
|
|
ipfs-cluster:
|
|
source: .
|
|
plugin: nil
|
|
build-packages: [make, wget]
|
|
prepare: |
|
|
mkdir -p ../go/src/github.com/ipfs/ipfs-cluster
|
|
cp -R . ../go/src/github.com/ipfs/ipfs-cluster
|
|
build: |
|
|
env GOPATH=$(pwd)/../go make -C ../go/src/github.com/ipfs/ipfs-cluster install
|
|
install: |
|
|
mkdir $SNAPCRAFT_PART_INSTALL/bin
|
|
mv ../go/bin/ipfs-cluster-service $SNAPCRAFT_PART_INSTALL/bin/
|
|
mv ../go/bin/ipfs-cluster-ctl $SNAPCRAFT_PART_INSTALL/bin/
|
|
after: [go]
|
|
go:
|
|
source-tag: go1.9.2
|