Giter Site home page Giter Site logo

Comments (5)

muayyad-alsadi avatar muayyad-alsadi commented on August 16, 2024 1

Yes, this is planned

We already tag the container with checksum of the the file

from podman-compose.

cdhowie avatar cdhowie commented on August 16, 2024 1

I'm not actually talking about building an image. I'm talking only about "rebuilding" (destroying and recreating) the container.

What I mean is, if you have a docker-compose.yml file and you change a port forward (as an example) by adding to an existing service:

ports:
    - 127.0.0.1:8080:80

And you run docker-compose up -d then Docker will only destroy and recreate the container(s) for the service that you modified. Using the hash of the entire docker-compose.yml file means that every service would have their containers destroyed and recreated even if only one changed.

from podman-compose.

muayyad-alsadi avatar muayyad-alsadi commented on August 16, 2024 1

Precise delta is difficult there are manu types of changes

  • Adding containers
  • removing containers
  • changing details of a container

A naive implemenation, if the hash changed do down for all.

To make it precise the implementation would be

Fetch old hash from pod/first-container
If not different, don't call down
If different, list all containers and walk on them one by one checking service hash.

But currently this is not possible
Because port mapping is done on the pod not on the container

from podman-compose.

cdhowie avatar cdhowie commented on August 16, 2024

Would there be a way to tag the container with a hash of only whatever settings apply to the container? docker-compose up will only rebuild the containers that actually changed; if you have a compose file with three containers and change the ports exposed to the host for only one container, for example, docker-compose up will only rebuild that one container.

from podman-compose.

muayyad-alsadi avatar muayyad-alsadi commented on August 16, 2024

Build is a different matter.
If the image is there, no need for build.

from podman-compose.

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.