Make create-droplet directly executable, and have slightly better documentation
This commit is contained in:
parent
c022445849
commit
f19be411a2
1 changed files with 16 additions and 7 deletions
23
digitalocean/create-droplet.sh
Normal file → Executable file
23
digitalocean/create-droplet.sh
Normal file → Executable file
|
|
@ -1,11 +1,20 @@
|
|||
#! /usr/bin/env nix-shell
|
||||
#! nix-shell -i bash -p bash
|
||||
set -xe
|
||||
NAME="test.nidus.cloud"
|
||||
PROJECT="1782f0e0-0968-4fe2-ac7d-192584ec7ce5"
|
||||
REGION="sfo3"
|
||||
SIZE="s-1vcpu-2gb"
|
||||
#SIZE="s-1vcpu-1gb" \
|
||||
SSH_KEYS="48777034,46710608"
|
||||
TAGS="nixos,test"
|
||||
doctl compute droplet create \
|
||||
"test.nidus.cloud" \
|
||||
$NAME \
|
||||
--enable-ipv6 \
|
||||
--image debian-12-x64 \
|
||||
--project-id ce2159e8-02f5-4169-8943-f34ccf812d23 \
|
||||
--region sfo3 \
|
||||
--size s-1vcpu-2gb \
|
||||
--ssh-keys 48777034,46710608 \
|
||||
--tag-name nixos \
|
||||
--project-id $PROJECT\
|
||||
--region $REGION \
|
||||
--size $SIZE\
|
||||
--ssh-keys $SSH_KEYS\
|
||||
--tag-name $TAGS \
|
||||
--wait
|
||||
# --size s-1vcpu-1gb \
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue