File tree Expand file tree Collapse file tree 3 files changed +8
-6
lines changed
Expand file tree Collapse file tree 3 files changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ resource "hcloud_server" "buildx" {
33 name = each. value . server_name
44 server_type = each. value . server_type
55 location = each. value . server_location
6- image = " docker-ce "
6+ image = " debian-13 "
77 network {
88 network_id = var. network_id
99 ip = each. value . private_ipv4
@@ -20,9 +20,10 @@ resource "hcloud_server" "buildx" {
2020 user_data = <<- EOT
2121#cloud-config
2222${ yamlencode ({
23- package_reboot_if_required = true
24- package_update = true
25- package_upgrade = true
23+ runcmd = [
24+ " curl -fsSL https://get.docker.com -o get-docker.sh" ,
25+ " sh get-docker.sh"
26+ ]
2627})}
2728EOT
2829}
Original file line number Diff line number Diff line change @@ -63,7 +63,8 @@ locals {
6363 " mkdir ${ local . cache_mount_path } " ,
6464 " mount -o discard,defaults /dev/disk/by-id/scsi-0HC_Volume_${ var . volume_cache_id } ${ local . cache_mount_path } " ,
6565 " sed -i 's|/var/lib|${ local . cache_mount_path } |g' ${ local . docker_config_file_path } " ,
66- " systemctl restart docker" ,
66+ " curl -fsSL https://get.docker.com -o get-docker.sh" ,
67+ " sh get-docker.sh" ,
6768 " docker compose -f ${ local . act_compose_file_path } up -d"
6869 ]
6970 }
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ resource "hcloud_server" "runner" {
22 name = var. server_name
33 server_type = var. server_type
44 location = var. server_location
5- image = " docker-ce "
5+ image = " debian-13 "
66 public_net {
77 ipv4 = var. primary_ipv4_id
88 ipv6 = var. primary_ipv6_id
You can’t perform that action at this time.
0 commit comments