Coder Social home page Coder Social logo

Comments (8)

cskiraly avatar cskiraly commented on July 17, 2024 1

Hi @nghiant2710 ,

Even if Debian based images are outliers, I think there would be a need for date tagged images that one can consistently use at different levels, and through different languages.

from base-images.

cskiraly avatar cskiraly commented on July 17, 2024

@curcuz @craig-mulligan, can you check?

from base-images.

nghiant2710 avatar nghiant2710 commented on July 17, 2024

Hey @cskiraly,

You're correct, our base images follows the <device>-<distro>-<language> naming scheme, Debian base images are special since they are created before we defined that scheme so debian part is omitted.

About the tag for each base images, you should check the available tags for each images in the docker hub repository. You can find the links in our docs here https://docs.resin.io/runtime/resin-base-images/

from base-images.

nghiant2710 avatar nghiant2710 commented on July 17, 2024

@cskiraly let me explain about how we build the base images.

The Resin base images are automatically rebuilt every week to make sure all images are up-to-date but there is a problem here, rebuilding base images can potentially break user's builds. To solve that problem, we create the date tagged images, which will never be rebuilt, after every successful build (we don't schedule the date, it's automatically handled by our builders), so users can base their app on that image and it will be stable.

If you want to find node image which uses a specify base layer, you should look for the nearest date in tag list on dockerhub. For example: if you want node image of raspberrypi2-debian:jessie-20161010, it's resin/raspberrypi2-node:6-20161022 (this tag is too far from now so dockerhub doesn't display the tag but I found it in our builders logs)

Also we do have a PR to export all tags to a github repository so you can easily find all available tags because dockerhub doesn't display all tags.

from base-images.

shaunmulligan avatar shaunmulligan commented on July 17, 2024

@petrosagg and @nghiant2710 surely there must be some way to only tag all the builds for a particular build date in one step so that they all have exactly the same date tag?

from base-images.

cskiraly avatar cskiraly commented on July 17, 2024

Thanks @nghiant2710, I wasn't aware DockerHub limits the list of tags shown! Is there any simple way to list all available tags?
If possible, I would still vote for having tags date synched.

from base-images.

cskiraly avatar cskiraly commented on July 17, 2024

Since the resinOS model now changed to multi-container, let me revisit this issue reiterating my suggestion:

The problem:
When preparing a set of containers to be deployed on a device, one could try to optimize the size of the overall distribution by generating images with common base layers. However, it is still cumbersome to rely on image timestamps, since the timestamp is the date of generation, and the generation process runs for several days. Thus, is it hard to find different images from the hierarchy with matching base layers, which would reduces the overall multi-container distribution size.

My suggestion is to tag your images with 2 tags:

  • one based on the generation date, like now;
  • another one based on the date when the build cycle started.
    This latter would be a tag consistent over the whole image hierarchy, largely simplifying automation of the creation of consistent multi-image sets.

@shaunmulligan as you can see I've already opened an issue on this

from base-images.

nghiant2710 avatar nghiant2710 commented on July 17, 2024

hey @cskiraly,

This issue is resolved in the balenalib base images as the datestamp is now consistent. All base images generated from the same release will now have same datestamp.

from base-images.

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.