Skip to content

no partitions defined while using dind (docker in a docker) with gitlab ci runner #147

Open
@marcelomanzo

Description

I am facing the same issue, while using gitlab ci runner, even when using: -v /dev:/dev
build_os_dist:
image: "docker:latest"
stage: .pre
services:

  • docker:dind
    script:
  • apk update
  • apk add git
  • git clone https://github.com/solo-io/packer-plugin-arm-image
  • cd packer-plugin-arm-image
  • docker run --rm --privileged -v /dev:/dev -v {PWD}/packer_cache:/build/packer_cache -v ${PWD}/output-arm-image:/build/output-arm-image ghcr.io/solo-io/packer-plugin-arm-image build samples/raspbian_golang.json
    tags:
  • linux

Output...

==> arm-image: Copying source image.
==> arm-image: Image is a zip file.
==> arm-image: Unzipping 2020-02-13-raspbian-buster-lite.img
arm-image: Speed: 148.38 MB/s
arm-image: Progress: 40.25%
arm-image: Speed: 91.92 MB/s
arm-image: Progress: 65.03%
arm-image: Speed: 55.48 MB/s
arm-image: Progress: 80.06%
==> arm-image: Growing partition to 4096 M (4294967296 bytes)
arm-image: mapping output-arm-image/image
==> arm-image: losetup --show -f -P output-arm-image/image
==> arm-image: partitions: []
==> arm-image: no partitions defined
Build 'arm-image' errored after 33 seconds 467 milliseconds: step canceled or halted
==> Wait completed after 33 seconds 467 milliseconds
==> Some builds didn't complete successfully and had errors:
--> arm-image: step canceled or halted
==> Builds finished but no artifacts were created.
Cleaning up project directory and file based variables

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions