Add custom python libs to docker jobeserver
by Adrian Perez Rodriguez - 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
Re: Add custom python libs to docker jobeserver
by Richard Lobb - There are two ways:
- 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.
- 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.
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
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.