diff options
Diffstat (limited to 'recipes-containers/vcontainer/files/vdkr.sh')
| -rwxr-xr-x | recipes-containers/vcontainer/files/vdkr.sh | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/recipes-containers/vcontainer/files/vdkr.sh b/recipes-containers/vcontainer/files/vdkr.sh new file mode 100755 index 00000000..818c831e --- /dev/null +++ b/recipes-containers/vcontainer/files/vdkr.sh | |||
| @@ -0,0 +1,25 @@ | |||
| 1 | #!/bin/bash | ||
| 2 | # SPDX-FileCopyrightText: Copyright (C) 2025 Bruce Ashfield | ||
| 3 | # | ||
| 4 | # SPDX-License-Identifier: GPL-2.0-only | ||
| 5 | # | ||
| 6 | # vdkr: Docker-like interface for cross-architecture container operations | ||
| 7 | # | ||
| 8 | # This provides a familiar docker-like CLI that executes commands inside | ||
| 9 | # a QEMU-emulated environment with the target architecture's Docker. | ||
| 10 | # | ||
| 11 | # Command naming convention: | ||
| 12 | # - Commands matching Docker's syntax/semantics use Docker's name (import, load, save, etc.) | ||
| 13 | # - Extended commands with non-Docker behavior use 'v' prefix (vimport) | ||
| 14 | |||
| 15 | # Set runtime-specific parameters before sourcing common code | ||
| 16 | VCONTAINER_RUNTIME_NAME="vdkr" | ||
| 17 | VCONTAINER_RUNTIME_CMD="docker" | ||
| 18 | VCONTAINER_RUNTIME_PREFIX="VDKR" | ||
| 19 | VCONTAINER_IMPORT_TARGET="docker-daemon:" | ||
| 20 | VCONTAINER_STATE_FILE="docker-state.img" | ||
| 21 | VCONTAINER_OTHER_PREFIX="VPDMN" | ||
| 22 | VCONTAINER_VERSION="3.4.0" | ||
| 23 | |||
| 24 | # Source common implementation | ||
| 25 | source "$(dirname "${BASH_SOURCE[0]}")/vcontainer-common.sh" "$@" | ||
