solana/snap/snapcraft.yaml

100 lines
2.3 KiB
YAML
Raw Normal View History

2018-06-18 13:45:53 -07:00
name: solana
version: git
summary: Blockchain, Rebuilt for Scale
description: |
710,000 tx/s with off-the-shelf hardware and no sharding.
Scales with Moore's Law.
grade: devel
2018-06-19 13:09:09 -07:00
# TODO: solana-perf-fullnode does not yet run with 'strict' confinement due to the
# CUDA dependency, so use 'devmode' confinement for now
confinement: devmode
2018-06-18 13:45:53 -07:00
2018-06-24 10:10:55 -07:00
hooks:
configure:
plugs: [network]
2018-06-24 10:10:55 -07:00
2018-06-18 13:45:53 -07:00
apps:
2018-06-22 15:03:03 -07:00
drone:
command: solana-drone
plugs:
- network
- network-bind
2018-06-18 13:45:53 -07:00
fullnode:
command: solana-fullnode
plugs:
- network
- network-bind
- home
2018-06-19 13:09:09 -07:00
fullnode-cuda:
command: solana-fullnode-cuda
plugs:
- network
- network-bind
- home
2018-06-18 13:45:53 -07:00
fullnode-config:
command: solana-fullnode-config
plugs:
- network
- network-bind
genesis:
command: solana-genesis
mint:
command: solana-mint
2018-06-19 13:09:09 -07:00
client-demo:
command: solana-client-demo
simple-client-demo:
command: solana-simple-client-demo
2018-06-18 13:45:53 -07:00
2018-06-24 10:10:55 -07:00
daemon-validator:
daemon: simple
command: validator.sh
daemon-leader:
daemon: simple
command: leader.sh
daemon-drone:
daemon: simple
command: drone.sh
2018-06-18 13:45:53 -07:00
parts:
2018-06-24 10:10:55 -07:00
solana-rsync:
plugin: nil
override-build: |
# TODO: build rsync from source instead of sneaking it in from the host
# system...
set -x
mkdir -p $SNAPCRAFT_PART_INSTALL/bin
cp -av /usr/bin/rsync $SNAPCRAFT_PART_INSTALL/bin/
solana-scripts:
plugin: nil
override-build: |
set -x
mkdir -p $SNAPCRAFT_PART_INSTALL/bin
cp -av multinode-demo/* $SNAPCRAFT_PART_INSTALL/bin/
2018-06-19 13:09:09 -07:00
solana-cuda:
plugin: rust
rust-channel: stable
rust-features:
- erasure
- cuda
prime:
- bin/solana-fullnode-cuda
- usr/lib/libgf_complete.so.1
- usr/lib/libJerasure.so.2
override-build: |
2018-06-23 02:15:38 -07:00
./fetch-perf-libs.sh
2018-06-19 13:09:09 -07:00
snapcraftctl build
mv $SNAPCRAFT_PART_INSTALL/bin/solana-fullnode $SNAPCRAFT_PART_INSTALL
rm -rf $SNAPCRAFT_PART_INSTALL/bin/*
mv $SNAPCRAFT_PART_INSTALL/solana-fullnode $SNAPCRAFT_PART_INSTALL/bin/solana-fullnode-cuda
mkdir -p $SNAPCRAFT_PART_INSTALL/usr/lib/
cp -f libJerasure.so $SNAPCRAFT_PART_INSTALL/usr/lib/libJerasure.so.2
cp -f libgf_complete.so $SNAPCRAFT_PART_INSTALL/usr/lib/libgf_complete.so.1
2018-06-18 13:45:53 -07:00
solana:
plugin: rust
rust-channel: stable