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
+6 -6
View File
@@ -12,12 +12,12 @@ import (
"strings"
"time"
"github.com/arescom/docker-migrate/internal/dkr"
"github.com/arescom/docker-migrate/internal/job"
"github.com/arescom/docker-migrate/internal/migrate"
"github.com/arescom/docker-migrate/internal/spec"
"github.com/arescom/docker-migrate/internal/sshx"
"github.com/arescom/docker-migrate/internal/store"
"github.com/arescom/dockmv/internal/dkr"
"github.com/arescom/dockmv/internal/job"
"github.com/arescom/dockmv/internal/migrate"
"github.com/arescom/dockmv/internal/spec"
"github.com/arescom/dockmv/internal/sshx"
"github.com/arescom/dockmv/internal/store"
)
func (s *Server) handleHealth(w http.ResponseWriter, r *http.Request) {
+4 -4
View File
@@ -13,10 +13,10 @@ import (
"strings"
"time"
"github.com/arescom/docker-migrate/internal/dkr"
"github.com/arescom/docker-migrate/internal/job"
"github.com/arescom/docker-migrate/internal/sshx"
"github.com/arescom/docker-migrate/internal/store"
"github.com/arescom/dockmv/internal/dkr"
"github.com/arescom/dockmv/internal/job"
"github.com/arescom/dockmv/internal/sshx"
"github.com/arescom/dockmv/internal/store"
)
// Config configures the HTTP server.
+1 -1
View File
@@ -9,7 +9,7 @@ import (
"strings"
"time"
"github.com/arescom/docker-migrate/internal/spec"
"github.com/arescom/dockmv/internal/spec"
dockertypes "github.com/docker/docker/api/types"
"github.com/docker/docker/api/types/container"
"github.com/docker/docker/api/types/image"
+1 -1
View File
@@ -7,7 +7,7 @@ import (
"sort"
"strings"
"github.com/arescom/docker-migrate/internal/spec"
"github.com/arescom/dockmv/internal/spec"
"github.com/docker/docker/api/types/container"
"github.com/docker/docker/api/types/image"
imagetypes "github.com/docker/docker/api/types/image"
+4 -4
View File
@@ -7,15 +7,15 @@ import (
"testing"
"time"
"github.com/arescom/docker-migrate/internal/spec"
"github.com/arescom/dockmv/internal/spec"
)
// TestLiveInventory is a smoke test against whatever daemon the environment
// points at. It is skipped unless DOCKER_MIGRATE_LIVE_TEST is set, because it
// points at. It is skipped unless DOCKMV_LIVE_TEST is set, because it
// needs a real Docker host.
func TestLiveInventory(t *testing.T) {
if os.Getenv("DOCKER_MIGRATE_LIVE_TEST") == "" {
t.Skip("set DOCKER_MIGRATE_LIVE_TEST=1 to run against the local daemon")
if os.Getenv("DOCKMV_LIVE_TEST") == "" {
t.Skip("set DOCKMV_LIVE_TEST=1 to run against the local daemon")
}
c, err := New("")
if err != nil {
+4 -4
View File
@@ -4,7 +4,7 @@ import (
"fmt"
"strings"
"github.com/arescom/docker-migrate/internal/spec"
"github.com/arescom/dockmv/internal/spec"
)
// renderInstaller generates the shell script shipped inside a migration
@@ -451,14 +451,14 @@ seed_readonly() { # container image destination relpath compressed
store="$(resolve_mount "$1" "$3")" || { err "cannot resolve storage behind $3"; return 1; }
base="${3##*/}"
stage="dm-stage-$$-${RANDOM}"
mountat="/__docker_migrate/$base"
mountat="/__dockmv/$base"
$DOCKER create --name "$stage" --volume "$store:$mountat" "$2" >/dev/null \
|| { err "could not create staging container for $3"; return 1; }
local rc=0
if [ "$5" = 1 ]; then
gzip -dc -- "$PKGDIR/$4" | $DOCKER cp -a - "$stage:/__docker_migrate" || rc=$?
gzip -dc -- "$PKGDIR/$4" | $DOCKER cp -a - "$stage:/__dockmv" || rc=$?
else
$DOCKER cp -a - "$stage:/__docker_migrate" < "$PKGDIR/$4" || rc=$?
$DOCKER cp -a - "$stage:/__dockmv" < "$PKGDIR/$4" || rc=$?
fi
$DOCKER rm -f "$stage" >/dev/null 2>&1 || true
if [ "$rc" != 0 ]; then
+1 -1
View File
@@ -11,7 +11,7 @@ import (
"testing"
"time"
"github.com/arescom/docker-migrate/internal/spec"
"github.com/arescom/dockmv/internal/spec"
)
func buildPrepared(t *testing.T, c *spec.Container, vols []spec.Volume, nets []spec.Network) *Prepared {
+4 -4
View File
@@ -15,9 +15,9 @@ import (
"strings"
"time"
"github.com/arescom/docker-migrate/internal/dkr"
"github.com/arescom/docker-migrate/internal/job"
"github.com/arescom/docker-migrate/internal/spec"
"github.com/arescom/dockmv/internal/dkr"
"github.com/arescom/dockmv/internal/job"
"github.com/arescom/dockmv/internal/spec"
)
// PackageFormat selects how the finished package is laid out on disk.
@@ -102,7 +102,7 @@ func (p *Packager) Run(ctx context.Context, j *job.Job) (*Result, error) {
man := spec.Manifest{
FormatVersion: 1,
CreatedAt: time.Now(),
CreatedBy: "docker-migrate",
CreatedBy: "dockmv",
SourceHost: p.SourceHost,
Options: opts,
Items: p.Plan.Items,
+2 -2
View File
@@ -8,7 +8,7 @@ import (
"path"
"strings"
"github.com/arescom/docker-migrate/internal/spec"
"github.com/arescom/dockmv/internal/spec"
)
// Prepared is one container resolved against the user's selection: the spec as
@@ -189,7 +189,7 @@ func Prepare(
// StagingMountPath is where a read-only destination is mounted inside the
// temporary staging container used to seed it.
const stagingRoot = "/__docker_migrate"
const stagingRoot = "/__dockmv"
// StagingPaths returns the mount point and the extraction directory used when
// seeding a read-only mount through a staging container. The volume is mounted
+1 -1
View File
@@ -4,7 +4,7 @@ import (
"strings"
"testing"
"github.com/arescom/docker-migrate/internal/spec"
"github.com/arescom/dockmv/internal/spec"
)
func sample() *spec.Container {
+4 -4
View File
@@ -10,10 +10,10 @@ import (
"sync"
"time"
"github.com/arescom/docker-migrate/internal/dkr"
"github.com/arescom/docker-migrate/internal/job"
"github.com/arescom/docker-migrate/internal/spec"
"github.com/arescom/docker-migrate/internal/sshx"
"github.com/arescom/dockmv/internal/dkr"
"github.com/arescom/dockmv/internal/job"
"github.com/arescom/dockmv/internal/spec"
"github.com/arescom/dockmv/internal/sshx"
)
// SSHRunner migrates containers straight from the local daemon to a target
+1 -1
View File
@@ -7,7 +7,7 @@ import (
"io"
"strings"
"github.com/arescom/docker-migrate/internal/spec"
"github.com/arescom/dockmv/internal/spec"
)
// RemoteDocker drives the docker CLI on a target host over SSH. It assumes
+1 -1
View File
@@ -12,7 +12,7 @@ import (
"sort"
"sync"
"github.com/arescom/docker-migrate/internal/sshx"
"github.com/arescom/dockmv/internal/sshx"
)
// ErrNotFound is returned for an unknown connection id.
File diff suppressed because one or more lines are too long
+1 -1
View File
@@ -6,7 +6,7 @@
<meta name="color-scheme" content="dark light" />
<link rel="icon" type="image/png" href="/favicon.png" />
<title>DockMV</title>
<script type="module" crossorigin src="/assets/index-DJVzxyBi.js"></script>
<script type="module" crossorigin src="/assets/index-2w4y0Lpg.js"></script>
<link rel="stylesheet" crossorigin href="/assets/index-CKzWD9Xt.css">
</head>
<body>