[
https://issues.apache.org/jira/browse/CASSANDRA-16419?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17278628#comment-17278628
]
Michael Semb Wever edited comment on CASSANDRA-16419 at 2/4/21, 8:02 AM:
-------------------------------------------------------------------------
This came in when the
[deb|https://github.com/apache/cassandra-builds/blob/trunk/build-scripts/cassandra-deb-packaging.sh#L38]
and
[rpm|https://github.com/apache/cassandra-builds/blob/trunk/build-scripts/cassandra-rpm-packaging.sh#L38]
scripts were added to the artifact jobs. Both those scripts build a docker
image with the SHA in the name, so they rarely become dangling images, unlike
the docker images built and used in the other jobs.
Note, previously images older than four hours were also getting removed by
these two scripts, but again only dangling. I think that needs to be fixed as
well, see
[here|https://github.com/apache/cassandra-builds/blob/trunk/build-scripts/cassandra-deb-packaging.sh#L33]
and
[here|https://github.com/apache/cassandra-builds/blob/trunk/build-scripts/cassandra-rpm-packaging.sh#L33].
was (Author: michaelsembwever):
This came in when the
[deb|https://github.com/apache/cassandra-builds/blob/trunk/build-scripts/cassandra-deb-packaging.sh#L38]
and
[rpm|https://github.com/apache/cassandra-builds/blob/trunk/build-scripts/cassandra-rpm-packaging.sh#L38]
scripts were added to the artifact jobs. Both those scripts build a docker
image with the SHA in the name, so they rarely become dangling images, unlike
the docker images built and used in the other jobs.
Note, previously images only than four hours were also getting removed by these
two scripts, but again only dangling. I think that needs to be fixed as well,
see
[here|https://github.com/apache/cassandra-builds/blob/trunk/build-scripts/cassandra-deb-packaging.sh#L33]
and
[here|https://github.com/apache/cassandra-builds/blob/trunk/build-scripts/cassandra-rpm-packaging.sh#L33].
> Cassandra-builds should remove the unused (non-dangling) docker images in
> Jenkins
> ---------------------------------------------------------------------------------
>
> Key: CASSANDRA-16419
> URL: https://issues.apache.org/jira/browse/CASSANDRA-16419
> Project: Cassandra
> Issue Type: Improvement
> Components: Build, CI
> Reporter: Yifan Cai
> Assignee: Yifan Cai
> Priority: Normal
> Time Spent: 10m
> Remaining Estimate: 0h
>
> The docker `prune` commands used in the Jenkins builds only remove the
> dangling images. What we are expecting is to remove the unused ones as well.
> The commands currently used are missing the option `-a | --all`.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]