public:docker

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
public:docker [2017-03-08 15:27] – external edit 127.0.0.1public:docker [2018-06-07 06:52] (current) – [Development (extending the software)] Jan David Mol
Line 72: Line 72:
 === Q: I get "Illegal instruction" when running some of the software? === === Q: I get "Illegal instruction" when running some of the software? ===
  
-A: The LOFAR software is compiled for a 2015-era processor (Intel Xeon E5-2603v3 to be exact) for performance reasons, and uses CPU instructions not available on older machines. Please run our images on a newer machine.+A: The LOFAR software is compiled for a 2015-era processor (Intel Xeon E5-2603v3 to be exact) for performance reasons, and uses CPU instructions not available on older machines. Please run our images on a newer machine, or [[#development_extending_the_software|rebuild the Docker images from scratch]].
  
 ===== Development (extending the software) ===== ===== Development (extending the software) =====
Line 83: Line 83:
 svn co -N https://svn.astron.nl/LOFAR/branches/LOFAR-Release-2_19/ svn co -N https://svn.astron.nl/LOFAR/branches/LOFAR-Release-2_19/
 cd LOFAR-Release-2_19 cd LOFAR-Release-2_19
 +svn up CMake
 mkdir -p build/gnu_opt && cd build/gnu_opt mkdir -p build/gnu_opt && cd build/gnu_opt
  
-cmake ../.. -DBUILD_PACKAGES=Docker -DUSE_LOG4CPLUS=OFF && make -j 16 install+cmake ../.. -DBUILD_PACKAGES=Docker -DUSE_LOG4CPLUS=OFF -DUSE_CASACORE=OFF && make -j 16 install
 </file> </file>
  
 which will put the Dockerfiles in subdirectories in ''LOFAR-Release-2_19/build/gnu_opt/installed/share/docker''. which will put the Dockerfiles in subdirectories in ''LOFAR-Release-2_19/build/gnu_opt/installed/share/docker''.
 +
 +=== Q: How do I build your Docker images from scratch? ===
 +
 +A: By obtaining the Dockerfiles (see above), and running:
 +
 +<file>
 +# load LOFAR environment variables, used to determine tags etc
 +source installed/lofarinit.sh
 +# build all LOFAR images, in the order required by their interdependencies
 +docker-build-all.sh
 +</file>
  
 === Q: How do I add files/modifications permanently? === === Q: How do I add files/modifications permanently? ===
  • Last modified: 2018-02-05 10:31
  • (external edit)