mirror of
https://github.com/EvernodeXRPL/hpcore.git
synced 2026-04-29 15:37:59 +00:00
- Replaced beast with websocketd and websocat. #79 #83 #84 - Implemented inbound/outbound peer connection merging. - Added graceful shutdown of hpcore with sigint. #87
23 lines
740 B
Bash
Executable File
23 lines
740 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# Usage example: ./vmcreate.sh hp1 aueast
|
|
|
|
# Azure vm creation script
|
|
# az login
|
|
# az account list
|
|
# az account set --subscription ''
|
|
# az account list-locations
|
|
|
|
name=$1
|
|
loc=$2
|
|
vmsize=Standard_B1ls
|
|
vmpass=$(cat vmpass.txt)
|
|
resgroup=My-ResGroup
|
|
|
|
az vm create --name $name --resource-group $resgroup --size $vmsize --admin-username geveo --admin-password $vmpass --image UbuntuLTS --location $loc --generate-ssh-keys
|
|
az vm open-port --resource-group $resgroup --name $name --port 22860 --priority 900 && \
|
|
az vm open-port --resource-group $resgroup --name $name --port 8080 --priority 901
|
|
|
|
vmip=$(az vm show -d -g $resgroup -n $name --query publicIps -o tsv)
|
|
echo $vmip >> iplist.txt
|
|
echo $vmip "created and added to iplist.txt" |