mirror of
https://github.com/OpenRouterTeam/spawn.git
synced 2026-04-28 03:49:31 +00:00
fix: pass DO Marketplace img_check validation (#2276)
Three fixes for marketplace validation failures: 1. Install all security updates (apt-get dist-upgrade) — img_check fails if any security patches are pending. 2. Purge droplet-agent and /opt/digitalocean — img_check fails if the DO monitoring agent directory exists. 3. Correct img_check.sh filename to 99-img-check.sh — the previous URL returned 404. Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
4719b49754
commit
7643b96266
1 changed files with 13 additions and 0 deletions
|
|
@ -106,6 +106,19 @@ build {
|
|||
]
|
||||
}
|
||||
|
||||
# DO Marketplace: install all security updates and remove DO droplet agent
|
||||
provisioner "shell" {
|
||||
inline = [
|
||||
"apt-get update -y",
|
||||
"apt-get dist-upgrade -y",
|
||||
"apt-get purge -y droplet-agent || true",
|
||||
"rm -rf /opt/digitalocean",
|
||||
]
|
||||
environment_vars = [
|
||||
"DEBIAN_FRONTEND=noninteractive",
|
||||
]
|
||||
}
|
||||
|
||||
# DO Marketplace cleanup — runs last before snapshot.
|
||||
# Based on https://github.com/digitalocean/marketplace-partners/blob/master/scripts/cleanup.sh
|
||||
# Clears secrets, history, logs, and machine-id so each launched droplet
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue