Git Product home page Git Product logo

Comments (5)

Timtam avatar Timtam commented on May 27, 2024 1

The issue is related to the source image, which is devops-works/golang-upx. That docker image gets built for amd64 only unfortunately, which causes the arm64 to pull the wrong image and try to build on top of that.
My solution looks like follows:

  1. Pull golang-upx repository from here: https://github.com/devops-works/docker-golang-upx

  2. Patch the dockerfile to download the arm64 upx binary instead of the amd64 one. That part is hardcoded, so we'd need to ask for support for $BUILDPLATFORM and create a separate issue over at the golang-upx repository to get that problem solved, or patch it manually for the time being. I decided for the latter because I needed a quickfix.

  3. I then added the following to the whishper docker file top:

# syntax = devthefuture/dockerfile-x

You can now replace the requirement of devops-works/golang-upx:latest with this line:

FROM ./docker-golang-upx/Dockerfile as backend-builder

Make sure to use the correct path to your golang-upx Dockerfile.

  1. Now build your own whishper image, which will run just fine on arm64. You can also directly reference the whishper Dockerfile inside of your docker-compose.yml too if you want to.

Hope that helps someone. There is no better solution to the problem for now, or I don't know any better one.

Best permanent fix would be to either request a fix over at golang-upx or step away from that image/implementation entirely, or manually patch and build within the CI/release process to get a proper ARM64 image built and pushed.

from whishper.

pluja avatar pluja commented on May 27, 2024

huh, that's strange, I can't seem to reproduce it. did you find out anything else about the issue?

from whishper.

beastarman74 avatar beastarman74 commented on May 27, 2024

I am running it on an Oracle Cloud VPS, the free tier. with 4 virtual core, 24gb RAM.

I have tried it on a Raspberry Pi 4b (8gb) and I get the same error.

from whishper.

pluja avatar pluja commented on May 27, 2024

Hey @beastarman74 can you try latest version v2.0.0?

from whishper.

kenvenin avatar kenvenin commented on May 27, 2024

Hi @pluja
Experiencing same issue on v2.0.0 and beta branch

from whishper.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.