-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsolana-binary-install.yaml
25 lines (24 loc) · 1.17 KB
/
solana-binary-install.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
---
- jobs:
- ARG: solana_version v1.9.19
- ARG: solana_net http://api.devnet.solana.com
- ARG: solana_release https://github.com/solana-labs/solana/releases/download/{{ solana_version }}/solana-release-x86_64-unknown-linux-gnu.tar.bz2
- ARG: solana_user_name solana
- RUN: >-
groupadd --system solana-application || true
- RUN: >-
echo '%solana-application ALL=(ALL) NOPASSWD: ALL' > /etc/sudoers.d/solana-application
- RUN: >-
adduser
--home-dir "/var/lib/solana"
--comment "Solana application user"
--groups solana-application,systemd-journal
--create-home
--shell /bin/bash
"{{ solana_user_name }}" || true
- RUN: wget "{{ solana_release }}" -O /var/lib/solana/solana.bz2
- RUN: tar jxf /var/lib/solana/solana.bz2 -C /var/lib/solana/
- RUN: su {{ solana_user_name }} -c '/var/lib/solana/solana-release/bin/solana-install init {{ solana_version }}'
- RUN: su {{ solana_user_name }} -c '/var/lib/solana/solana-release/bin/solana config set --url {{ solana_net }}'
- COPY: --blueprint files/solana-sys-tuner.service.j2 /etc/systemd/system/solana-sys-tuner.service
- SERVICE: --enable --restarted solana-sys-tuner.service