Page MenuHomePhabricator

mysqldump is not present in Kubernetes container images
Open, Needs TriagePublic

Description

Hi, I'm working on porting Citation Hunt batch jobs to Kubernetes, which basically means running this script as a cron job every few days to update the tool's database.

The first thing the script does is use mysqldump to create a backup of the existing database, but it seems that, when run on Kubernetes, /usr/bin/mysqldump doesn't exist. If it helps, the ID of the container image is:

docker-pullable://docker-registry.tools.wmflabs.org/toolforge-python37-sssd-base@sha256:39273508641cfe0eda6edbd8eb76852d05cc7ab58f025c71f514a7bee1f7ed2a

Would it be reasonable to have mysqldump in the images? Or should I continue to run backup jobs on the grid?

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald TranscriptJun 6 2020, 5:44 AM