lavabit / robox

The tools needed to robotically create/configure/provision a large number of operating systems, for a variety of hypervisors, using packer.
620 stars 140 forks source link

Cannot install Docker on generic/alpine317 due to connection issue on macOS #268

Open oxr463 opened 1 year ago

oxr463 commented 1 year ago
packer build .
embedded-software-factory.vagrant.alpine: output will be in this color.

==> embedded-software-factory.vagrant.alpine: Creating a Vagrantfile in the build directory...
==> embedded-software-factory.vagrant.alpine: Adding box using vagrant box add ...
    embedded-software-factory.vagrant.alpine: (this can take some time if we need to download the box)
==> embedded-software-factory.vagrant.alpine: Calling Vagrant Up (this can take some time)...
==> embedded-software-factory.vagrant.alpine: Using SSH communicator to connect: 127.0.0.1
==> embedded-software-factory.vagrant.alpine: Waiting for SSH to become available...
==> embedded-software-factory.vagrant.alpine: Connected to SSH!
==> embedded-software-factory.vagrant.alpine: Pausing 10s before the next provisioner...
==> embedded-software-factory.vagrant.alpine: Provisioning with shell script: scripts/dependencies.sh
    embedded-software-factory.vagrant.alpine: fetch https://mirrors.edge.kernel.org/alpine/v3.17/main/x86_64/APKINDEX.tar.gz
    embedded-software-factory.vagrant.alpine: fetch https://mirrors.edge.kernel.org/alpine/v3.17/community/x86_64/APKINDEX.tar.gz
    embedded-software-factory.vagrant.alpine: v3.17.2-230-ge1f6a514bfe [https://mirrors.edge.kernel.org/alpine/v3.17/main]
    embedded-software-factory.vagrant.alpine: v3.17.2-233-g1cac12cbfc4 [https://mirrors.edge.kernel.org/alpine/v3.17/community]
    embedded-software-factory.vagrant.alpine: OK: 17823 distinct packages available
    embedded-software-factory.vagrant.alpine: (1/33) Installing libattr (2.5.1-r2)
    embedded-software-factory.vagrant.alpine: (2/33) Installing skalibs (2.12.0.1-r0)
    embedded-software-factory.vagrant.alpine: (3/33) Installing utmps-libs (0.1.2.0-r1)
    embedded-software-factory.vagrant.alpine: (4/33) Installing coreutils (9.1-r0)
    embedded-software-factory.vagrant.alpine: (5/33) Installing libseccomp (2.5.4-r0)
    embedded-software-factory.vagrant.alpine: (6/33) Installing runc (1.1.4-r5)
==> embedded-software-factory.vagrant.alpine: ERROR: Failed to create usr/bin/runc: Connection aborted
==> embedded-software-factory.vagrant.alpine: ERROR: runc-1.1.4-r5: IO ERROR
    embedded-software-factory.vagrant.alpine: (7/33) Installing containerd (1.6.18-r0)
==> embedded-software-factory.vagrant.alpine: ERROR: Failed to create usr/bin/containerd: Connection aborted
==> embedded-software-factory.vagrant.alpine: ERROR: containerd-1.6.18-r0: IO ERROR
    embedded-software-factory.vagrant.alpine: (8/33) Installing containerd-openrc (1.6.18-r0)
    embedded-software-factory.vagrant.alpine: (9/33) Installing libmnl (1.0.5-r0)
    embedded-software-factory.vagrant.alpine: (10/33) Installing libnftnl (1.2.4-r0)
    embedded-software-factory.vagrant.alpine: (11/33) Installing iptables (1.8.8-r2)
    embedded-software-factory.vagrant.alpine: (12/33) Installing iptables-openrc (1.8.8-r2)
    embedded-software-factory.vagrant.alpine: (13/33) Installing ip6tables (1.8.8-r2)
    embedded-software-factory.vagrant.alpine: (14/33) Installing ip6tables-openrc (1.8.8-r2)
    embedded-software-factory.vagrant.alpine: (15/33) Installing tini-static (0.19.0-r1)
    embedded-software-factory.vagrant.alpine: (16/33) Installing docker-engine (20.10.21-r3)
==> embedded-software-factory.vagrant.alpine: ERROR: Failed to create usr/bin/dockerd: Connection aborted
==> embedded-software-factory.vagrant.alpine: ERROR: docker-engine-20.10.21-r3: IO ERROR
    embedded-software-factory.vagrant.alpine: (17/33) Installing docker-openrc (20.10.21-r3)
    embedded-software-factory.vagrant.alpine: (18/33) Installing docker-cli (20.10.21-r3)
==> embedded-software-factory.vagrant.alpine: ERROR: docker-cli-20.10.21-r3: BAD signature
    embedded-software-factory.vagrant.alpine: (19/33) Installing docker (20.10.21-r3)
    embedded-software-factory.vagrant.alpine: Executing docker-20.10.21-r3.pre-install
    embedded-software-factory.vagrant.alpine: (20/33) Installing libgcc (12.2.1_git20220924-r4)
    embedded-software-factory.vagrant.alpine: (21/33) Installing libstdc++ (12.2.1_git20220924-r4)
==> embedded-software-factory.vagrant.alpine: ERROR: Failed to create usr/lib/libstdc++.so.6.0.30: Connection aborted
==> embedded-software-factory.vagrant.alpine: ERROR: libstdc++-12.2.1_git20220924-r4: IO ERROR
    embedded-software-factory.vagrant.alpine: (22/33) Installing binutils (2.39-r2)
==> embedded-software-factory.vagrant.alpine: ERROR: Failed to create usr/bin/dwp: Connection aborted
==> embedded-software-factory.vagrant.alpine: ERROR: binutils-2.39-r2: IO ERROR
    embedded-software-factory.vagrant.alpine: (23/33) Installing libgomp (12.2.1_git20220924-r4)
    embedded-software-factory.vagrant.alpine: (24/33) Installing libatomic (12.2.1_git20220924-r4)
    embedded-software-factory.vagrant.alpine: (25/33) Installing gmp (6.2.1-r2)
==> embedded-software-factory.vagrant.alpine: ERROR: gmp-6.2.1-r2: BAD signature
    embedded-software-factory.vagrant.alpine: (26/33) Installing isl25 (0.25-r0)
    embedded-software-factory.vagrant.alpine: (27/33) Installing mpfr4 (4.1.0-r0)
==> embedded-software-factory.vagrant.alpine: ERROR: Failed to create usr/lib/libmpfr.so.6.1.0: Connection aborted
==> embedded-software-factory.vagrant.alpine: ERROR: mpfr4-4.1.0-r0: IO ERROR
    embedded-software-factory.vagrant.alpine: (28/33) Installing mpc1 (1.2.1-r1)
    embedded-software-factory.vagrant.alpine: (29/33) Installing gcc (12.2.1_git20220924-r4)
    embedded-software-factory.vagrant.alpine: (30/33) Installing musl-dev (1.2.3-r4)
    embedded-software-factory.vagrant.alpine: (31/33) Installing go (1.19.7-r0)
    embedded-software-factory.vagrant.alpine: (32/33) Installing linux-pam (1.5.2-r1)
    embedded-software-factory.vagrant.alpine: (33/33) Installing shadow (4.13-r0)
    embedded-software-factory.vagrant.alpine: Executing busybox-1.35.0-r29.trigger
    embedded-software-factory.vagrant.alpine: 8 errors; 675 MiB in 125 packages
==> embedded-software-factory.vagrant.alpine: Provisioning step had errors: Running the cleanup provisioner, if present...
==> embedded-software-factory.vagrant.alpine: destroying Vagrant box...
==> embedded-software-factory.vagrant.alpine: Deleting output directory...
Build 'embedded-software-factory.vagrant.alpine' errored after 1 minute 9 seconds: Script exited with non-zero exit status: 8. Allowed exit codes are: [0]

==> Wait completed after 1 minute 9 seconds

==> Some builds didn't complete successfully and had errors:
--> embedded-software-factory.vagrant.alpine: Script exited with non-zero exit status: 8. Allowed exit codes are: [0]

==> Builds finished but no artifacts were created.