Skip to content

Commit e842232

Browse files
authored
[Internal]: Minor tweaks in packer docs and CI (#2356)
- Mention that staging builds can be limited to a single region. - Disable Nebius builds by default.
1 parent e67a47b commit e842232

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

.github/workflows/docker.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ on:
3434
build_nebius:
3535
description: "Build Nebius images"
3636
type: boolean
37-
default: true
37+
default: false
3838

3939
env:
4040
PACKER_VERSION: "1.9.2"

scripts/packer/README.md

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,15 @@ This directory contains HashiCorp Packer templates for building VM images that a
44

55
For most backends, we build two images: one for CPU-only instances, typically published as `dstack-X.Y`, and one for NVIDIA GPU instances, typically published as `dstack-cuda-X.Y`, where `X.Y` is the image version. Some backends may have additional images, e.g. Azure has `dstack-grid-X.Y` for instances requiring NVIDIA Grid drivers.
66

7-
The release and staging versions of the images are built automatically using GitHub Actions. If you need to build the images manually, see `.github/workflows/docker.yml` for examples of how to use the templates. Additional instructions for some backends are provided below.
7+
## Builds
88

9-
## Azure
9+
Production builds are triggered manually in GitHub Actions, see `.github/workflows/docker.yml`.
10+
11+
The GitHub Actions workflow also allows for staging builds. Staging builds are more limited than production builds, e.g. the resulting image can be restricted to a single region and not made public, but this is usually sufficient for testing.
12+
13+
If you still need to build the images locally, see the GitHub Actions workflow for examples of how to use the packer templates. Additional instructions for some backends are provided below.
14+
15+
### Azure
1016

1117
Follow [installation instruction](https://learn.microsoft.com/en-us/cli/azure/install-azure-cli-linux?pivots=apt)
1218
for Azure CLI `az`. [Login](https://learn.microsoft.com/en-us/cli/azure/authenticate-azure-cli) for managing resources:
@@ -53,7 +59,7 @@ Set environment variables.
5359
| AZURE_TENANT_ID | tenant_id |
5460
| AZURE_SUBSCRIPTION_ID | subscription_id |
5561

56-
## Nebius
62+
### Nebius
5763

5864
Create credentials for packer. The `compute.admin` role is not sufficient, use `admin` instead.
5965

0 commit comments

Comments
 (0)