Skip to content

Arch build not successful  #18

@tennisparty

Description

@tennisparty

I get the following error code when building for armv7hf (rpi3a+)
[Error] Error: The command '/bin/sh -c curl https://api.github.com/repos/balena-io/wifi-connect/releases/latest -s | grep -hoP 'browser_download_url": "\K.*armv7hf\.tar\.gz' | xargs -n1 curl -Ls | tar -xvz -C /usr/src/app/' returned a non-zero code: 2

I am using the following code blocks from the example

dockercompose.yml
wifi-connect: build: ./ restart: always network_mode: host privileged: true labels: io.balena.features.dbus: "1" io.balena.features.firmware: "1"

dockerfile.template

FROM balenalib/%%BALENA_ARCH%%-python as builder

RUN install_packages dnsmasq wireless-tools git rsync binutils busybox-static

WORKDIR /usr/src/app

RUN curl https://api.github.com/repos/balena-io/wifi-connect/releases/latest -s \
    | grep -hoP 'browser_download_url": "\K.*%%BALENA_ARCH%%\.tar\.gz' \
    | xargs -n1 curl -Ls \
    | tar -xvz -C /usr/src/app/

RUN pip install git+https://github.com/larsks/dockerize

RUN mkdir output

RUN dockerize -n --verbose -o /usr/src/app/output/ -u dnsmasq -a /var/run /var/run  --filetools `which busybox` `which balena-idle` `which dnsmasq` /usr/src/app/wifi-connect

WORKDIR /var/lib/misc

RUN touch dnsmasq.leases

FROM scratch
COPY --from=builder /usr/src/app/output/ ./
COPY --from=builder /usr/src/app/ui /usr/src/app/ui
COPY --from=builder /var/lib/misc/dnsmasq.leases /var/lib/misc/dnsmasq.leases
COPY start.sh ./

CMD ["/bin/busybox","sh", "start.sh"]

Metadata

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