Homec4science

docker: python bytecode cache

Authored by Marco Neumann <marco@crepererum.net> on Jul 20 2015, 11:28.

Description

docker: python bytecode cache

  • Adds docker build step that precompiles all python files. This improves Invnenio start up and test time. It is required to do this during the build phase because the Invenio user does not have write access to the python files.
  • Adds *.pyo files to .dockerignore and .gitignore.
  • Changes docker volumes in dev setup so that the Docker process has the ability to write pyhton bytecode files. Please note that updates after the build phase invalidate the bytecode files and a rebuild needs to be done by the root user.

Signed-off-by: Marco Neumann <marco@crepererum.net>

Details

Committed
Tibor Simko <tibor.simko@cern.ch>Sep 9 2015, 21:53
Parents
R3600:5d9fcc236079: tests: removal of old base testsuite
Branches
Unknown
Tags
Unknown

Event Timeline

Tibor Simko <tibor.simko@cern.ch> committed R3600:aaa9dd05dace: docker: python bytecode cache (authored by Marco Neumann <marco@crepererum.net>).Sep 9 2015, 21:53