-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Uses a prebuilt obscuro node image (#1487)
- Loading branch information
Showing
2 changed files
with
27 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
|
||
# Steps to create a new image for obscuro nodes | ||
|
||
az vm create \ | ||
--resource-group Testnet \ | ||
--name MakeImageVM \ | ||
--image Canonical:0001-com-ubuntu-server-focal:20_04-lts-gen2:20.04.202206220 \ | ||
--admin-username obscurouser --admin-password 'PWD' | ||
|
||
ssh obscurouser@IPADDRESS | ||
|
||
sudo apt-get update \ | ||
&& sudo apt-get install -y gcc \ | ||
&& sudo snap refresh && sudo snap install --channel=1.20 go --classic \ | ||
&& curl -fsSL https://get.docker.com -o get-docker.sh && sh ./get-docker.sh | ||
|
||
exit | ||
|
||
az vm deallocate --resource-group Testnet --name MakeImageVM | ||
az vm generalize --resource-group Testnet --name MakeImageVM | ||
az image create --resource-group Testnet --name ObscuroConfUbuntu --source MakeImageVM --hyper-v-generation V2 | ||
|
||
az vm delete --resource-group Testnet --name MakeImageVM --yes | ||
az disk delete --resource-group Testnet --name MakeImageVM_OSDisk --yes | ||
az network nic delete --resource-group Testnet --name MakeImageVM_NIC | ||
|