From 43a1e21293878a0c34de4c37061df8523e713cd8 Mon Sep 17 00:00:00 2001 From: Bryce Date: Mon, 15 Jun 2026 14:49:06 -0700 Subject: [PATCH 1/4] expose instances dir - add to container host config --- components/schemas/containers/config/ContainerRuntime.yml | 5 +++++ stackspec/schema/StackSpecContainerConfigRuntime.yml | 7 +++++++ 2 files changed, 12 insertions(+) diff --git a/components/schemas/containers/config/ContainerRuntime.yml b/components/schemas/containers/config/ContainerRuntime.yml index 0efa7c8b..b0284fe3 100644 --- a/components/schemas/containers/config/ContainerRuntime.yml +++ b/components/schemas/containers/config/ContainerRuntime.yml @@ -130,6 +130,11 @@ properties: type: - boolean - "null" + expose_instances_dir: + description: If true, Cycle will mount the host's `/sys/fs/cgroups` directory into the container at `/var/run/cycle/host/cgroups`. + type: + - boolean + - "null" power_management: description: If true, Cycle will give the container instances access via internal api to power off or reboot the host server. type: diff --git a/stackspec/schema/StackSpecContainerConfigRuntime.yml b/stackspec/schema/StackSpecContainerConfigRuntime.yml index 1c47e198..7de693b3 100644 --- a/stackspec/schema/StackSpecContainerConfigRuntime.yml +++ b/stackspec/schema/StackSpecContainerConfigRuntime.yml @@ -181,6 +181,13 @@ properties: - $ref: StackVariable.yml expose_cgroups: description: If true, Cycle will mount the host's `/sys/fs/cgroups` directory into the container at `/var/run/cycle/host/cgroups`. + oneOf: + - type: + - boolean + - "null" + - $ref: StackVariable.yml + expose_instances_dir: + description: If true, Cycle will mount the host's instances directory into the container at `/var/run/cycle/host/instances`. oneOf: - type: - boolean From fcef15971079736e73e95f4b779854769cd7c188 Mon Sep 17 00:00:00 2001 From: Bryce Date: Mon, 15 Jun 2026 14:51:16 -0700 Subject: [PATCH 2/4] save --- components/schemas/containers/config/ContainerRuntime.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/schemas/containers/config/ContainerRuntime.yml b/components/schemas/containers/config/ContainerRuntime.yml index b0284fe3..d54f716c 100644 --- a/components/schemas/containers/config/ContainerRuntime.yml +++ b/components/schemas/containers/config/ContainerRuntime.yml @@ -131,7 +131,7 @@ properties: - boolean - "null" expose_instances_dir: - description: If true, Cycle will mount the host's `/sys/fs/cgroups` directory into the container at `/var/run/cycle/host/cgroups`. + description: If true, Cycle will mount the host's instances directory into the container at `/var/run/cycle/host/instances`. type: - boolean - "null" From a30d4fc4afffa2010845d65c73b951cd6e4bb3eb Mon Sep 17 00:00:00 2001 From: Bryce Date: Mon, 15 Jun 2026 14:53:11 -0700 Subject: [PATCH 3/4] formatting --- stackspec/schema/StackSpecContainerConfigRuntime.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stackspec/schema/StackSpecContainerConfigRuntime.yml b/stackspec/schema/StackSpecContainerConfigRuntime.yml index 7de693b3..02844505 100644 --- a/stackspec/schema/StackSpecContainerConfigRuntime.yml +++ b/stackspec/schema/StackSpecContainerConfigRuntime.yml @@ -192,7 +192,7 @@ properties: - type: - boolean - "null" - - $ref: StackVariable.yml + - $ref: StackVariable.yml power_management: description: If true, Cycle will give the container instances access via internal api to power off or reboot the host server. oneOf: From 6b126642301c60ac0b46f97169c73accdc0f1b74 Mon Sep 17 00:00:00 2001 From: Bryce Date: Mon, 15 Jun 2026 14:55:04 -0700 Subject: [PATCH 4/4] formatting --- stackspec/schema/StackSpecContainerConfigRuntime.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/stackspec/schema/StackSpecContainerConfigRuntime.yml b/stackspec/schema/StackSpecContainerConfigRuntime.yml index 02844505..a686d11f 100644 --- a/stackspec/schema/StackSpecContainerConfigRuntime.yml +++ b/stackspec/schema/StackSpecContainerConfigRuntime.yml @@ -185,14 +185,14 @@ properties: - type: - boolean - "null" - - $ref: StackVariable.yml + - $ref: StackVariable.yml expose_instances_dir: description: If true, Cycle will mount the host's instances directory into the container at `/var/run/cycle/host/instances`. oneOf: - type: - boolean - "null" - - $ref: StackVariable.yml + - $ref: StackVariable.yml power_management: description: If true, Cycle will give the container instances access via internal api to power off or reboot the host server. oneOf: