diff options
| author | Carlo Landmeter <clandmeter@alpinelinux.org> | 2020-01-11 22:17:45 +0100 |
|---|---|---|
| committer | Carlo Landmeter <clandmeter@alpinelinux.org> | 2020-01-17 10:57:36 +0100 |
| commit | 8dd4a740439ea72bb288f5b07cf204e0bdbe42c2 (patch) | |
| tree | 23a7aee05c60c99fdc83f1ae8e7b02c7515884da | |
| parent | 08211018f3604ac016bf37ce6eb3ea83a394ced7 (diff) | |
| download | docker-abuild-8dd4a740439ea72bb288f5b07cf204e0bdbe42c2.tar.bz2 docker-abuild-8dd4a740439ea72bb288f5b07cf204e0bdbe42c2.tar.xz | |
admin: add enable multi-arch
| -rwxr-xr-x | dabuild-admin | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/dabuild-admin b/dabuild-admin index fe74182..87861d4 100755 --- a/dabuild-admin +++ b/dabuild-admin @@ -11,6 +11,11 @@ list_volumes() { docker volume ls --quiet --filter name="^dabuild" } +enable_multiarch() { + docker run --rm --privileged multiarch/qemu-user-static \ + --reset --persistent yes --credential yes +} + usage() { cat <<- EOF dabuild: version (unknown) @@ -18,6 +23,7 @@ usage() { Available commands: config: access abuild configuration volumes: list created dabuild volumes + multiarch: enable docker multi-arch support help: this help screen EOF } @@ -26,6 +32,7 @@ usage() { case $cmd in config) manage_config;; volumes) list_volumes;; + multiarch) enable_multiarch;; help) usage;; *) usage; exit 1;; esac |
