Skip to content

Commit 7cdb8e5

Browse files
committed
Update example
1 parent f054865 commit 7cdb8e5

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

petri/contrib/digitalocean/petri_docker.pkr.hcl.example

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ source "digitalocean" "petri" {
1414
size = "s-1vcpu-1gb"
1515
ssh_username = "root"
1616
snapshot_name = "petri-ubuntu-24-04-x64-telemetry"
17-
snapshot_regions = [<regions>]
17+
snapshot_regions = ["ams3", "fra1", "nyc1", "sfo2", "sgp1"]
1818
}
1919

2020
build {
@@ -68,6 +68,9 @@ build {
6868
"chown root:docker /docker_volumes",
6969
"sudo sed -i.bak 's/^CUSTOM_ARGS.*/CUSTOM_ARGS=\"--stability.level experimental\"/' /etc/default/alloy",
7070

71+
# Set file descriptor limit
72+
"ulimit -n 99999",
73+
7174
# SSH - disable password authentication
7275
"sed -i 's/#PasswordAuthentication yes/PasswordAuthentication no/' /etc/ssh/sshd_config",
7376
"sed -i 's/PasswordAuthentication yes/PasswordAuthentication no/' /etc/ssh/sshd_config",

0 commit comments

Comments
 (0)