Add custom python libs to docker jobeserver

Add custom python libs to docker jobeserver

by Adrian Perez Rodriguez -
Number of replies: 3

Hello all

How can I add some not default libs to an existing jobeserver running from https://hub.docker.com/r/trampgeek/jobeinabox/

Would be glad to get some hints,
Adrian

In reply to Adrian Perez Rodriguez

Re: Add custom python libs to docker jobeserver

by Richard Lobb -

There are two ways:

  1. The "proper" way (creates a new image). Clone the source from github, here. Edit the dockerfile to include the extra stuff you want, then build a new image, as documented on that site.
  2. The "quick hack" way (updates an existing running container). Execute a shell in the container with a command of the form

    docker exec -it <jobe-container> /bin/bash

    Then use apt-get update, apt-get install to install what you want. But if you delete the container, you lose all your additions.

In reply to Richard Lobb

Re: Add custom python libs to docker jobeserver

by Adrian Perez Rodriguez -

Wow thanks @Richard

It worked! :-) Used the quick way apt-get install python3-numpy at the moment.

Best,
Adrian

In reply to Adrian Perez Rodriguez

Re: Add custom python libs to docker jobeserver

by Richard Lobb -

Good to know.

A word of warning about running numpy: you will quite likely have to increase the memory limit for the job and/or the number of processes (numprocs). See this thread.