question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

The arm64 image is missing in the docker tags

See original GitHub issue

Hi,

I’d like to be able to run this on a rasberrypi. But there is no arm64 build. It looks like you are using a cross-compiler for go (xgo). it does have options to add arm64 (--targets=linux/arm64)

could it be as simple as this? .circleci/config.yml

//...
  build:
    executor: python
    working_directory: ~/offen
    environment:
      DOCKER_LOGIN: offen
      DOCKER_BUILDKIT: '1'
    steps:
      - checkout
      - setup_remote_docker:
          version: 20.10.6
      - run:
          name: Set revision
          command: |
            if [ -z "$CIRCLE_TAG" ]; then
              echo 'export OFFEN_GIT_REVISION=$(git rev-parse --short HEAD)' >> $BASH_ENV
            else
              echo 'export OFFEN_GIT_REVISION=$CIRCLE_TAG' >> $BASH_ENV
            fi
      - run:
          name: Build binaries
          command: |
            if [ -z "$CIRCLE_TAG" ] && [ "${CIRCLE_BRANCH}" != "development" ] && [ "${CIRCLE_BRANCH}" != "master" ]; then
              make build
            else
---           TARGETS=linux/amd64,windows/amd64 make build
+++           TARGETS=linux/amd64,windows/amd64,linux/arm64 make build
              # Darwin builds cannot be statically linked right now
              # so we override the default LDFLAGS value
              TARGETS=darwin/amd64 LDFLAGS='' make build
            fi
      - persist_to_workspace:
          root: ~/offen
          paths:
            - bin/*
//...

Would love to hear your thoughts on this

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:11 (11 by maintainers)

github_iconTop GitHub Comments

1reaction
strootjecommented, Feb 15, 2022

Yes! My pi4 can easily pull a arm64 image now. Thanks for the guidance and the quick responses. They really made this a lot easier 👍

1reaction
strootjecommented, Feb 14, 2022

xgo is used because Offen uses go-sqlite which uses CGO which means you need a platform-specific C toolchain (yay for acronyms) if you want statically linked binaries. The go tool would only let you build dynamically linked ones when you need to use CGO.

Thanks for the explanation.

I’ll have a look at docker buildx in the morning

Read more comments on GitHub >

github_iconTop Results From Across the Web

Docker image :latest is missing ARM variants #47676 - GitHub
What happened: The :latest docker tag/image (grafana/grafana / grafana/grafana-oss) is currently only listing linux/amd64 (43c088a2b956).
Read more >
The Journey from x86 to ARM - Applying Docker Tags - Bitmovin
When exporting the image, the information about the platform would get lost. So to fix this, I used the <–cache-to> and <–cache-from> arguments ......
Read more >
Resolving a Missing Image Tag (Docker Installation)
Check for missing image tags any time that a test fails to run properly on a Private Location. ... From the terminal, run...
Read more >
nvidia/cuda-arm64 - Docker Image
The Cuda image tags for centos7 and 8 may be missing on NGC and Docker Hub. Centos upstream images often fail security scans...
Read more >
Docker Registry: Newly tagged image can be found, but not ...
Kindly Push the docker image into hub.docker.com for publishing it and then you can pull the image.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found