Skip to content
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

Support pruning images using CronJobs #4

Merged
merged 1 commit into from Nov 2, 2017

Conversation

vrutkovs
Copy link
Collaborator

@vrutkovs vrutkovs commented Nov 2, 2017

Signed-off-by: Vadim Rutkovsky vrutkovs@redhat.com

containers:
- name: build-pruner
image: {{ osbs_prune_image }}
command: ["/prune.sh"]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can't the default command on the image be used?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If buildroot is used it cannot be a default command. Instead this should be parametrized, updated the PR

secretName: {{ osbs_prune_secret }}
containers:
- name: build-pruner
image: {{ osbs_prune_image }}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What does this image look like? Will it be maintained by OpenShift via a BuildConfig?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What does this image look like? Will it be maintained by OpenShift via a BuildConfig?

The most easy way to that is to include necessary utils and scripts in the buildroot. For other instances it could be a separate image with tools only

Signed-off-by: Vadim Rutkovsky <vrutkovs@redhat.com>
@lcarva lcarva merged commit 8085fa6 into containerbuildsystem:master Nov 2, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants