-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfirst-setup.sh
executable file
·48 lines (35 loc) · 1.47 KB
/
first-setup.sh
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# basic apps
sudo apt-get update && sudo apt-get -y upgrade
sudo apt-get -y install curl nodejs npm python
# docker
sudo apt-get -y install \
ca-certificates \
curl \
gnupg \
lsb-release
sudo mkdir -p /etc/apt/keyrings
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /etc/apt/keyrings/docker.gpg
echo \
"deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/ubuntu \
$(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
sudo apt-get update
sudo apt-get -y install docker-ce docker-ce-cli containerd.io docker-compose-plugin
sudo apt-get -y install docker-compose
sudo chmod 666 /var/run/docker.sock
# nvm
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.2/install.sh | bash
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion
nvm install 14
nvm use 14
#fabric
curl -sSLO https://raw.githubusercontent.com/hyperledger/fabric/main/scripts/install-fabric.sh && chmod +x install-fabric.sh
./install-fabric.sh
git clone https://github.com/amazon-biobank/biobank.git
git clone https://github.com/leonardotkimura/fabric-multihost.git
# installing aliases
cd fabric-multihost
cat ./docker-aliases.sh >> ~/.bashrc
source ~/.bashrc
echo 'export PATH=$PATH:/home/ubuntu/fabric-samples/bin' >> ~/.bashrc