mudler / docker-companion

squash and unpack Docker images, in Golang
Other
42 stars 8 forks source link

aarch64 #5

Open necrose99 opened 4 years ago

necrose99 commented 4 years ago

eg go build using https://github.com/sakaki-/gentoo-on-rpi-64bit

fist run that dont die.. prior versions would not build. docker-companion-aarch64.zip

first native build w/o having to rely on rebuilding kernel . for arm32 inside. 2018 ish versions no dice..

ie scaleway @ time pure 64 bit and would have been irksome , to rebuild kernel on cloud vps host.

necrose99 commented 4 years ago

log exert. https://github.com/necrose99/gentoo-binhost/tree/aarch64-coretexa53-linux-gnu

i64 /usr/src/docker-companion-master # ./docker-companion
INFO 2020/02/24 10:20:12 Docker Companion v0.4.5
NAME:
   docker-companion - a Candy mix of Docker tools

USAGE:
   docker-companion [global options] command [command options] [arguments...]

VERSION:
   0.4.5

COMMANDS:
   download, dl  Download and unpacks an image without using docker - Usage: download foo/barimage /foobar/folder
   unpack, un    unpack the specified Docker image content as-is (run as root!) in a folder - Usage: unpack foo/barimage /foobar/folder
   squash, s     squash the Docker image (loosing metadata) into another - Usage: squash foo/bar foo/bar-squashed:latest. The second argument is optional
   help, h       Shows a list of commands or help for one command

GLOBAL OPTIONS:
   --pull         pull image before doing operations
   --fatal        threat errors as fatal
   --help, -h     show help
   --version, -v  print the version
pi64 /usr/src/docker-companion-master # ls
LICENSE  Makefile  README.md  api  docker-companion  download.go  go.mod  go.sum  main.go  nohup.out  release  squash.go  unpack.go  vendor
pi64 /usr/src/docker-companion-master # ldd docker-companion
        linux-vdso.so.1 (0x0000007fa3478000)
        libpthread.so.0 => /lib64/libpthread.so.0 (0x0000007fa33fb000)
        libc.so.6 => /lib64/libc.so.6 (0x0000007fa327b000)
        /lib/ld-linux-aarch64.so.1 => /lib64/ld-linux-aarch64.so.1 (0x0000007fa344a000)
pi64 /usr/src/docker-companion-master # zip docker-companion
-bash: zip: command not found
pi64 /usr/src/docker-companion-master # emerge -a zip
!!! Section 'MottainaiCI' in repos.conf has name different from repository name 'mottainai' set inside repository
!!! Repository 'crossdev' is missing masters attribute in '/var/db/repos/localrepo-crossdev/metadata/layout.conf'
!!! Set 'masters = gentoo' in this file for future compatibility
!!! Repository 'imiphay' is missing masters attribute in '/var/db/repos/imiphay/metadata/layout.conf'
!!! Set 'masters = gentoo' in this file for future compatibility
Undefined license group 'bindist'
--- Invalid atom in /etc/portage/package.accept_keywords/repos: */*::*
--- Invalid atom in /etc/portage/package.unmask/dev-python-d2to1: dev-python/d2to1 ** ~*
--- Invalid atom in /etc/portage/package.unmask/dev-python-shyaml: dev-python/shyaml ** ~*

Local copy of remote index is up-to-date and will be used.
WARNING: One or more repositories have missing repo_name entries:

        /var/db/repos/imiphay/profiles/repo_name

NOTE: Each repo_name entry should be a plain text file containing a
unique name for the repository on the first line.

 * IMPORTANT: 5 news items need reading for repository 'lto-overlay'.
 * IMPORTANT: 1 news items need reading for repository 'gentoo'.
 * Use eselect news read to view new items.

 * IMPORTANT: 5 config files in '/etc/portage' need updating.
 * See the CONFIGURATION FILES and CONFIGURATION FILES UPDATE TOOLS
 * sections of the emerge man page to learn how to update config files.

Local copy of remote index is up-to-date and will be used.

These are the packages that would be merged, in order:

Calculating dependencies... done!
[binary  N     ] app-arch/zip-3.0-r3  USE="bzip2 crypt unicode -natspec"