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

Docker prune is in deploy script, cron schedule is off #1153

Closed
wants to merge 7 commits into from

Conversation

alsmk
Copy link
Collaborator

@alsmk alsmk commented Nov 11, 2024

deploy.sh file contains the image prune operations
infrasttructure > server-setup > tasks > docker.yaml file now doesn't contains the docker prune operations

Copy link

Oops! Looks like you forgot to update the changelog. When updating CHANGELOG.md, please consider the following:

  • Changelog is read by country implementors who might not always be familiar with all technical details of OpenCRVS. Keep language high-level, user friendly and avoid technical references to internals.
  • Answer "What's new?", "Why was the change made?" and "Why should I care?" for each change.
  • If it's a breaking change, include a migration guide answering "What do I need to do to upgrade?".

Comment on lines 44 to 51
- name: 'Setup crontab to clean up docker images'
cron:
user: '{{ crontab_user }}'
name: 'cleanup docker images'
minute: '0'
hour: '0'
job: '/usr/bin/docker system prune -af >> /var/log/docker-prune.log'

Copy link
Member

Choose a reason for hiding this comment

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

Think we need to keep this for a while and set it to state: absent instead - otherwise it only doesn't get installed to new environments but never gets removed from the existing environments

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

ok i am changing it right now

@ocrvs-bot
Copy link

Your environment is deployed to https://prune-images-on-deploy.opencrvs.dev.

@Zangetsu101
Copy link
Collaborator

@alsmk These changes have been moved to countryconfig right? In that case, can we close this please?

@alsmk alsmk closed this Nov 22, 2024
@alsmk alsmk deleted the prune-images-on-deploy branch November 22, 2024 06:40
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.

4 participants