Mentions légales du service

Skip to content
  • BAIRE Anthony's avatar
    derive docker tags names from WebappVersion.id · b7b30d3e
    BAIRE Anthony authored
    With this change docker images are no longer
    named as: <Webapp.docker_name>:<WebappVersion.number>
    but       <Webapp.docker_name>:id</WebappVersion.id>
    
    This is only for storage, for the user we still present the image as
    <Webapp.docker_name>:<WebappVersion.number>
    
    There are multiple reasons to do that:
    - this simplifies the controller design, because docker images are no
      longer replaced (once an image is committed with tag, 'id<SOMETHING>'
      it won't be modified anymore) -> thus it is no longer necessary to
      track the image state carefully (when pushing/pulling from/to the
      registry)
    - this prevent reusing dangling images from a removed webapp (because we
      now have a strong guarantee that the image tags are unique)
    - this will avoid nasty race conditions when we implement direct 'push'
      to the registry (because we then assign the new image id before the
      manifest is actually pushed, if a push and commit are done in the same
      time we will keep the la...
    b7b30d3e