Add custom python libs to docker jobeserver

Add custom python libs to docker jobeserver

por Adrian Perez Rodriguez -
Número de respuestas: 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

En respuesta a Adrian Perez Rodriguez

Re: Add custom python libs to docker jobeserver

por 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.

En respuesta a Richard Lobb

Re: Add custom python libs to docker jobeserver

por Adrian Perez Rodriguez -

Wow thanks @Richard

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

Best,
Adrian

En respuesta a Adrian Perez Rodriguez

Re: Add custom python libs to docker jobeserver

por 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.