Page MenuHomePhabricator

Unable to install mysql2 using Ruby docker image on Kubernetes
Closed, ResolvedPublic


I'm trying to get a Ruby application running on Kubernetes, but I'm seeing an error about not being able to find, I think because the "ruby" docker container doesn't have the libmysqlclient-dev package installed.

I'm trying to start the service with webservice --backend=kubernetes ruby2 start /data/project/verification-pages/verification-pages/script/toolforge-start. You can see the contents of the toolforge-start script here:

Here's a gist of the full error I'm getting:

I notice that the "python2" docker container does have this package -;bac775da7cbeb7c275ae0a6251e9401524b6a2c0$18
so I _think_ that package needs to be added to the Ruby docker container here

Event Timeline

Change 429758 had a related patch set uploaded (by Arturo Borrero Gonzalez; owner: Arturo Borrero Gonzalez):
[operations/docker-images/toollabs-images@master] ruby: install libmysqlclient-dev package in the base image

aborrero triaged this task as Medium priority.Apr 30 2018, 10:13 AM
aborrero added subscribers: Andrew, bd808, aborrero.

This is my first patch on this. Waiting ACK from @bd808 and/or @Andrew .

I guess I can simply follow the instructions at

Change 429758 merged by Arturo Borrero Gonzalez:
[operations/docker-images/toollabs-images@master] ruby: install libmysqlclient-dev package in the base image

Mentioned in SAL (#wikimedia-cloud) [2018-05-03T14:48:46Z] <arturo> uploaded a new ruby docker image to the registry with the libmysqlclient-dev package T192566

Hey @chrismytton, closing task, feel free to reopen if you see something weird, or create a new one in case you need something else :-)

@chrismytton, you will need to stop and then start your webservice again for the Kubernetes system to pick up the new Docker image that has the mysql libraries installed.