-
Notifications
You must be signed in to change notification settings - Fork 608
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore(docker): ensure that just up <backend>
builds the image if necessary
#8549
Conversation
ACTION NEEDED Ibis follows the Conventional Commits specification for release automation. The PR title and description are used as the merge commit message. Please update your PR title and description to match the specification. |
just up <backend>
builds the image if necessaryjust up <backend>
builds the image if necessary
@@ -98,7 +98,7 @@ download-data owner="ibis-project" repo="testing-data" rev="master": | |||
|
|||
# start backends using docker compose; no arguments starts all backends | |||
up *backends: | |||
docker compose up --wait {{ backends }} | |||
docker compose up --build --wait {{ backends }} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think this change is necessary. I never have this problem with any of the containers we build, they get built automatically if necessary.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah, nope. I'm wrong.
I don't really like this solution because it will rebuild images even if they don't need to be rebuilt, but I'm not sure what the alternative is.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There are only two images that we build so maybe it's not a huge problem.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Docker layer cache will ensure that these are not actually rebuilt from scratch, it does nothing if the layer/image already exists.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see a build of the image every time no matter what when running just up postgres.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it will still show the build no matter what, but the various steps should be prefixed with CACHED
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
e.g.
=> [postgres 1/2] FROM docker.io/postgis/postgis:15-3.3-alpine@sha256:4738bee 0.0s
=> CACHED [postgres 2/2] RUN apk add --no-cache postgresql15-plpython3 0.0s
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah ok!
Noticed in #8541 after changing the flink dockerfile that the image hasn't been rebuilt.