GithubHelp home page GithubHelp logo

ARM Dockerfile about ninjam-helm HOT 7 CLOSED

ianhundere avatar ianhundere commented on August 23, 2024
ARM Dockerfile

from ninjam-helm.

Comments (7)

zeppelinux avatar zeppelinux commented on August 23, 2024 1

Hi there!

my rpi 400 melted in a house fire last this Tuesday (everybody are save), so I don’t have access to rpi build runtime anymore. You can check out/clone the repo https://github.com/zeppelinux/ninjam and try to build it on yours. Verify ninjas works.
Hopefully there is rpi target platform available in the GitHub and both builds (Linux and rpi) can be triggered automatically on the tag push. Let me know how it goes. Good luck!

from ninjam-helm.

zeppelinux avatar zeppelinux commented on August 23, 2024 1

Looks good to me. Want to try and create PR?

from ninjam-helm.

ianhundere avatar ianhundere commented on August 23, 2024

oh man, that's terrible. i'm sorry to hear, but relieved to hear everyone is okay.

i'll keep investigating and see what i need to do to get'r done.

take care / best of luck

edit: managed to compile it locally and it runs fine.

from ninjam-helm.

ianhundere avatar ianhundere commented on August 23, 2024
jobs:
  multi:        
        name: Set up QEMU
        uses: docker/setup-qemu-action@v1
      -
        name: Set up Docker Buildx
        uses: docker/setup-buildx-action@v1
      -
        name: Login to DockerHub
        uses: docker/login-action@v1 
        with:
          username: ${{ secrets.DOCKERHUB_USERNAME }}
          password: ${{ secrets.DOCKERHUB_TOKEN }}
      -
        name: Build and push
        uses: docker/build-push-action@v2
        with:
          context: .
          file: ./Dockerfile
          platforms: linux/amd64,linux/arm/v7
          push: true
          tags: |
            user/app:latest
            user/app:1.0.0        

i'm not super familiar with github actions, but it looks as if this is all that would be needed to build it for raspberry pi.

from ninjam-helm.

ianhundere avatar ianhundere commented on August 23, 2024

Sure thing; zeppelinux/ninjam#5.

Wasn't too sure what to do with the Docker push step...not sure if that's necessary.

from ninjam-helm.

zeppelinux avatar zeppelinux commented on August 23, 2024

The docker image is built by the DockerHub itself (not GitHub). DockerHub gets notified by GitHub (web hoock) on successful release, so yes there is no need to push anything from GitHub. I saw images on DockerHub for multiple architectures in the same registry, so it looks like it is supported (but I'm not sure).
I will look at the Docker Hub build and see if it can build another image.

from ninjam-helm.

ianhundere avatar ianhundere commented on August 23, 2024

looks like you can either do it via your pipelines with buildx or use the ARCH env var in your Dockerfile to specify what architecture to use.

https://www.docker.com/blog/multi-arch-build-and-images-the-simple-way/

building my own here: https://github.com/ianhundere/ninjam-server-armhf

from ninjam-helm.

Related Issues (1)

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.