Giter Site home page Giter Site logo

ARM Docker image about docker-hub-rss HOT 22 CLOSED

theconnman avatar theconnman commented on June 23, 2024
ARM Docker image

from docker-hub-rss.

Comments (22)

chessmango avatar chessmango commented on June 23, 2024 1

This is closed but I just wanted to comment on how lovely an interaction this was! Thanks so much @TheConnMan @TheGreatestJannet for your education and contribution respectively 🙂

from docker-hub-rss.

TheConnMan avatar TheConnMan commented on June 23, 2024

@TheGreatestJannet would you be willing to put together a Dockerfile based on a Node 12 ARM image? You can PR it in as Dockerfile-ARM. You can use all the same commands as in https://github.com/TheConnMan/docker-hub-rss/blob/dev/Dockerfile.

from docker-hub-rss.

TheGreatestJannet avatar TheGreatestJannet commented on June 23, 2024

from docker-hub-rss.

TheConnMan avatar TheConnMan commented on June 23, 2024

Would you like to know how? I can walk you through the steps if you're interested in learning.

from docker-hub-rss.

TheGreatestJannet avatar TheGreatestJannet commented on June 23, 2024

from docker-hub-rss.

TheConnMan avatar TheConnMan commented on June 23, 2024

Cool. Are you on Windows, Mac, or Linux? Local dev steps will be dependent on that. Check out https://www.docker.com/blog/multi-arch-images/ for how to set up your local Docker instance for muli-arch building.

from docker-hub-rss.

TheGreatestJannet avatar TheGreatestJannet commented on June 23, 2024

I am on Arch Linux. I have installed docker from the repo but when I run docker buildx ls I get:

docker buildx ls
docker: 'buildx' is not a docker command.
See 'docker --help'

from docker-hub-rss.

TheConnMan avatar TheConnMan commented on June 23, 2024

Hey @TheGreatestJannet, sorry for the delay on this. I'll get back to you this weekend.

from docker-hub-rss.

TheConnMan avatar TheConnMan commented on June 23, 2024

@TheGreatestJannet From what I can tell arm builds are no longer experimental, so that's why buildx isn't working for us.

I found a comparable ARM version of the Node base Docker image in https://hub.docker.com/layers/arm64v8/node/12-alpine/images/sha256-c6a9e3164795cf83d3f480142fdb8ab4e9584f7b561e8018ed378454163aa236?context=explore (reference https://github.com/docker-library/official-images#architectures-other-than-amd64). This means we should be able to create a new Dockerfile-arm file which uses this new image instead of the arm64v8/node:12-alpine in the From statement of the current Dockerfile (https://github.com/TheConnMan/docker-hub-rss/blob/dev/Dockerfile#L1).

Once you have the new Dockerfile-arm we'll need to add it to the Travis CI build. Take a look at https://github.com/TheConnMan/docker-hub-rss/blob/dev/.travis.yml#L11. That's where Travis CI builds the current Dockerfile. Add another line below building your new Dockerfile-arm. Check out https://docs.docker.com/engine/reference/commandline/build/#options for a docker build flag to specify the new Docker file.

Finally, once you've additionally built your ARM-based image you'll need to push it. See the after_success section of the Travis file (https://github.com/TheConnMan/docker-hub-rss/blob/dev/.travis.yml#L16) and add new commands to push your ARM version with new tag names.

Good luck!

from docker-hub-rss.

TheGreatestJannet avatar TheGreatestJannet commented on June 23, 2024

Most raspberry pi's are running arm32 OSes not arm64. Also do I replace FROM node:12-alpine with FROM arm64v8/node:12-alpine for example?

from docker-hub-rss.

TheConnMan avatar TheConnMan commented on June 23, 2024

I see. Check out arm32v7/node, looks to be a 32 bit version. Yes, that's the correct change to the FROM line. Use the 32 bit version I referenced above.

from docker-hub-rss.

TheGreatestJannet avatar TheGreatestJannet commented on June 23, 2024

Hi I have my docker file: TheGreatestJannet@e0021cf but I'm a bit confused about the next part. Would I add - docker build -t theconnman/docker-hub-rss -f Dockerfile-armv7 .?

Also for pushing the image can't everything be under the same tag such as latest? See this project for example: https://hub.docker.com/layers/bitwardenrs/server/latest/images/sha256-ed89e52078a02fe4c0d04ef2fcaab8c9f01db05aa29e73d6e41440ec69a50285?context=explore they have the amd64, armv7, arm64v8 etc all under the same latest tag.

from docker-hub-rss.

TheConnMan avatar TheConnMan commented on June 23, 2024

Your Dockerfile and build command look great.

Honestly I'm not sure, I didn't think that was possible... Yet the repo you link to shows that the latest tag does have multiple architectures. If you can figure it out I'm happy to take another PR! However I think what you've got will work.

Add your additional build command to the Travis file and then you can open a PR.

from docker-hub-rss.

TheGreatestJannet avatar TheGreatestJannet commented on June 23, 2024

Looks like it didn't build correctly.

from docker-hub-rss.

TheConnMan avatar TheConnMan commented on June 23, 2024

Yes, unfortunately it did. I did some tweaking of the Travis file and got it to work!

from docker-hub-rss.

TheGreatestJannet avatar TheGreatestJannet commented on June 23, 2024

Thanks a lot!

from docker-hub-rss.

TheGreatestJannet avatar TheGreatestJannet commented on June 23, 2024

Will there be a latest image or only a latest-dev image?

from docker-hub-rss.

TheConnMan avatar TheConnMan commented on June 23, 2024

There will be a latest-arm7. It's building now. I just released v0.4.0.

from docker-hub-rss.

TheGreatestJannet avatar TheGreatestJannet commented on June 23, 2024

Thank works perfectly! In ARM64 image might be worth while for some users though but I'll close this issue for now! Thanks a lot for your help!

from docker-hub-rss.

TheConnMan avatar TheConnMan commented on June 23, 2024

Thank you for contributing!

from docker-hub-rss.

chessmango avatar chessmango commented on June 23, 2024

For what it's worth as well, there's a decent write-up about image pipelines and meta tags here: https://blog.linuxserver.io/2019/02/21/the-lsio-pipeline-project/

And specifically: https://github.com/linuxserver/pipeline-triggers

from docker-hub-rss.

TheConnMan avatar TheConnMan commented on June 23, 2024

@chessmango that's very kind of you! Thanks for sharing the positivity.

from docker-hub-rss.

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.