Skip to content

Commit 189da9d

Browse files
authoredOct 1, 2024··
ci: add solana binary installation and update sudoer path (#891)
* ci: add solana binary installation and update sudoer path * ci: add dependency python module solana
1 parent 32f9373 commit 189da9d

File tree

2 files changed

+9
-14
lines changed

2 files changed

+9
-14
lines changed
 

‎.github/deployer/ec2_deployer.tf

+1-1
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ resource "aws_instance" "ibc-deployer" {
7474
iam_instance_profile = "SecretManagerReadAccess-ibc"
7575

7676
root_block_device {
77-
volume_size = 15
77+
volume_size = 25
7878
}
7979

8080
tags = {

‎.github/deployer/init_script.sh

+8-13
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ sudo chmod a+x /usr/local/bin/dasel
166166

167167
# Install boto3, yq, and jq
168168
apt-get install python3-pip -y
169-
pip3 install boto3 pwinput
169+
pip3 install boto3 pwinput solana
170170
apt-get install jq -y
171171
wget -qO /usr/local/bin/yq https://github.com/mikefarah/yq/releases/latest/download/yq_linux_amd64
172172
chmod +x /usr/local/bin/yq
@@ -224,9 +224,8 @@ deployr ALL=(ALL) NOPASSWD: /opt/deployer/bin/update_git.sh
224224
deployr ALL=(ALL) NOPASSWD: /opt/deployer/bin/deploy.sh
225225
deployr ALL=(ALL) NOPASSWD: /opt/deployer/bin/check-parameter.sh' > /etc/sudoers.d/deployr_sudo_commands
226226

227-
# Add goloop binary path to secure path
228-
sed -i '/secure_path/ s/"$/:\/usr\/local\/go\/bin:\/opt\/ibc\/bin:\/opt\/java\/jdk-11.0.18+10\/bin"/' /etc/sudoers
229-
227+
# Add chain command binary path to secure path
228+
sed -i '/secure_path/ s/"$/:\/usr\/local\/go\/bin:\/opt\/ibc\/bin:\/opt\/java\/jdk-11.0.18+10\/bin:\/root\/.local\/share\/solana\/install\/active_release\/bin:\/root\/.cargo\/bin\/"/' /etc/sudoers
230229
# Create Aliases for the user 'deployr'
231230
echo "## Aliases
232231
alias fetch-walletkeys='sudo /opt/deployer/bin/fetch_keys.sh'
@@ -243,15 +242,11 @@ alias add-stellar-key='/opt/deployer/root/keyutils/add_stellar_key.sh'" >> /root
243242
source "/root/.cargo/env"
244243

245244
export PATH=$${PATH}:/root/.cargo/bin
246-
sh -c "$(curl -sSfL https://release.solana.com/v1.18.18/install)"
247-
248-
sudo apt-get install -y pkg-config build-essential libudev-dev libssl-dev
249-
/root/.cargo/bin/cargo install --git https://github.com/coral-xyz/anchor avm --locked --force || true
250-
avm install 0.30.1 || true
251-
252-
echo "export PATH=$${PATH}:/root/.local/share/solana/install/releases/1.18.18/solana-release/bin" >> /root/.bashrc
253-
254-
245+
sh -c "$(curl -sSfL https://release.solana.com/v1.18.11/install)"
246+
/root/.cargo/bin/cargo install --git https://github.com/coral-xyz/anchor --tag v0.30.1 anchor-cli
247+
sudo apt-get install npm -y
248+
npm install -g yarn
249+
echo "export PATH=$${PATH}:/root/.local/share/solana/install/active_release/bin" >> /root/.bashrc
255250

256251
## Install multisig
257252
cargo install --git https://github.com/icon-project/cw-plus.git --branch feat/test-multisig cwmultisig

0 commit comments

Comments
 (0)
Please sign in to comment.