Giter Site home page Giter Site logo

Comments (4)

Lissy93 avatar Lissy93 commented on May 16, 2024 2

Thanks for raising this, you're right that this issue is caused by ARM. I will work on this tomorrow, and get an ARM-compatible image released onto Docker Hub. Will update you on this issue once it's done :)

from dashy.

evroon avatar evroon commented on May 16, 2024 2

Thank you for all the effort on trying to get this to work. Simply using the arm32v7 version of alpine as you mentioned seems to work on the Rpi 4 (it's a bit slow building the image of course ;) ).

I have experience with Docker but no experience with Docker Hub. There is an explanation here with a template Dockerfile on how to use QEMU to build ARM images on Docker Hub like you mentioned.

I will try myself to get it to work. If that works, I will create a PR.

from dashy.

Lissy93 avatar Lissy93 commented on May 16, 2024 1

Thanks again @evroon for providing the ARM-based Docker image
I'm super happy that it's finally working, and I hope it runs okay on your Pi :)

docker pull lissy93/dashy:arm64v8

from dashy.

Lissy93 avatar Lissy93 commented on May 16, 2024

So with the below Dockerfile, replacing the base image from alpine:3.14 to arm32v7/alpine:3.14 should work, except DockerHub throws an error (I guess because it's building the container on amd64)

LinuxServer.io seems to support multiple architectures with manifested docker images using buildkit, but got no idea how they're building those images - the Docker docs on enabling BuildKit only covers local containers - I couldn't find a way to do this with DockerHub

I've seen other images using QEMU to emulate the build process on DockerHub, but again, haven't been able to find much info on how to actually do this. I'm thinking that maybe I need a GH action to build the image, and then publish it on DockerHub

@EVOTk or anyone, any ideas on how to approach this? I'm still a bit of a noob at Dockerizing apps, this was the first one I had done.

Dashy's Standard Dockerfile:

# Use stsnadard light-weight Alpine container as base
FROM alpine:3.14

# Install Node and Yarn
RUN apk add --update --no-cache nodejs npm yarn

# Define some Env Vars
ENV PORT 80
ENV DIRECTORY /app
ENV IS_DOCKER true

# Create and set the working directory
WORKDIR ${DIRECTORY}

# Copy over the 'package.json' and 'yarn.lock'
COPY package.json ./
COPY yarn.lock ./

# Install dependencies
RUN yarn

# Copy over all source code
COPY . .

# Build Dashy for production
RUN yarn build

# Expose the port
EXPOSE ${PORT}

# Finally, build the app and start the server
CMD [ "yarn", "build-and-start"]

# Run simple healthchecks every 5 mins, to check that everything's running smoothly
HEALTHCHECK --interval=5m --timeout=2s --start-period=30s CMD yarn health-check

Error caused by using `FROM arm32v7/alpine:3.14` on DockerHub

error: failed to solve: rpc error: code = Unknown desc = executor failed running [/bin/sh -c apk add --update --no-cache nodejs npm yarn]: exit code: 1
Build failed using Buildkit

from dashy.

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.