Rename product to dockmv (container, image, module, env vars)

Container/image/service name, Go module path, CLI binary name, and
DOCKER_MIGRATE_* env vars still used the old working name; the project
is branded DockMV everywhere else (README, logo, Gitea repo).

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
2026-08-11 13:56:26 +02:00
co-authored by Claude Sonnet 5
parent 832af4aaae
commit 34e18987a0
32 changed files with 113 additions and 109 deletions
+11 -7
View File
@@ -1,10 +1,10 @@
#requires -Version 5.1
<#
.SYNOPSIS
Build the docker-migrate web UI and cross-compile release binaries.
Build the dockmv web UI and cross-compile release binaries.
.DESCRIPTION
Produces dist/docker-migrate-<os>-<arch>[.exe] for every target, one archive
Produces dist/dockmv-<os>-<arch>[.exe] for every target, one archive
per binary (.zip for Windows, .tar.gz elsewhere) and dist/SHA256SUMS.txt.
The PowerShell equivalent of `make release`, so a Windows host without make
@@ -130,11 +130,11 @@ try {
if (-not $Tag) { $Tag = "dev" }
}
$bin = "docker-migrate"
$bin = "dockmv"
$distDir = Join-Path $repoRoot "dist"
$ldflags = "-s -w -X main.version=$Tag"
Write-Host "docker-migrate release build" -ForegroundColor Cyan
Write-Host "dockmv release build" -ForegroundColor Cyan
Write-Host " go : $Go"
Write-Host " tag : $Tag"
Write-Host " targets : $($Targets -join ', ')"
@@ -152,13 +152,17 @@ try {
# run before the compile — not after, and not in parallel with it.
if (-not $SkipUi) {
Write-Host "Building web UI..." -ForegroundColor Cyan
if (-not (Get-Command npm -ErrorAction SilentlyContinue)) {
# npm.cmd, not npm(.ps1): the ps1 shim reparses $MyInvocation.Line as text
# when called via `& $Exe @Args`, which mangles splatted args into a bogus
# single token and makes npm print usage instead of running the command.
$npmCmd = (Get-Command npm.cmd -ErrorAction SilentlyContinue).Source
if (-not $npmCmd) {
throw "npm not found — install Node 22+, or pass -SkipUi to reuse the committed internal/webui/dist."
}
Push-Location (Join-Path $repoRoot "web")
try {
Invoke-Checked npm @("ci", "--no-audit", "--no-fund")
Invoke-Checked npm @("run", "build")
Invoke-Checked $npmCmd @("ci", "--no-audit", "--no-fund")
Invoke-Checked $npmCmd @("run", "build")
}
finally { Pop-Location }
Write-Host ""
+7 -7
View File
@@ -1,7 +1,7 @@
#requires -Version 5.1
<#
.SYNOPSIS
Build the docker-migrate container image + release binaries; push the image to
Build the dockmv container image + release binaries; push the image to
the Gitea registry and attach the binaries to a Gitea release.
.DESCRIPTION
@@ -58,7 +58,7 @@ param(
[string]$Owner = "kawa",
# Image name.
[string]$Image = "docker-migrate",
[string]$Image = "dockmv",
# Repository name holding the releases. The image and the repo are not named
# the same here, so this is separate from -Image.
@@ -242,7 +242,7 @@ function Publish-BinaryRelease {
Write-Host " creating release $Tag in $RepoPath..." -ForegroundColor DarkGray
$release = Invoke-GiteaApi -Method POST -Uri $releasesUri -Token $Token -Body @{
tag_name = $Tag
name = "docker-migrate $Tag"
name = "dockmv $Tag"
body = "Standalone binaries for linux, macOS and Windows. Container image: see the package registry."
draft = $false
}
@@ -311,7 +311,7 @@ try {
$tags = @("$base`:$Tag")
if (-not $NoLatest -and $Tag -ne "latest") { $tags += "$base`:latest" }
Write-Host "docker-migrate publish" -ForegroundColor Cyan
Write-Host "dockmv publish" -ForegroundColor Cyan
Write-Host " registry : $Registry"
if ($pushImage) {
Write-Host " image : $base"
@@ -358,10 +358,10 @@ try {
# Uploading a binary older than the code it claims to be is the one way
# this flag can quietly go wrong, so say so rather than assume.
$oldest = (Get-ChildItem $distDir -Filter "docker-migrate-$Tag-*" -File |
$oldest = (Get-ChildItem $distDir -Filter "dockmv-$Tag-*" -File |
Sort-Object LastWriteTime | Select-Object -First 1)
if (-not $oldest) {
throw "no archives named docker-migrate-$Tag-* in $distDir — the exe on disk was built under a different tag. Drop -NoBinaryBuild."
throw "no archives named dockmv-$Tag-* in $distDir — the exe on disk was built under a different tag. Drop -NoBinaryBuild."
}
$newer = Get-ChildItem $repoRoot -Recurse -Include *.go, *.ts, *.tsx, *.css, *.html -File |
Where-Object {
@@ -383,7 +383,7 @@ try {
& (Join-Path $PSScriptRoot "build-release.ps1") -Tag $Tag -Targets $Targets -SkipUi:$SkipUi
}
$artifacts = @(Get-ChildItem $distDir -Filter "docker-migrate-$Tag-*" -File | ForEach-Object FullName)
$artifacts = @(Get-ChildItem $distDir -Filter "dockmv-$Tag-*" -File | ForEach-Object FullName)
if (-not $artifacts.Count) { throw "no release archives for $Tag found in $distDir." }
$sums = Join-Path $distDir "SHA256SUMS.txt"
if (Test-Path $sums) { $artifacts += $sums }