User Tools

Site Tools


using_docker_containers

**This is an old revision of the document!**

Using docker containers

Current conventions for the GNURadio images provided by CorteXlab

  • These images are listed here
  • In these images, the “CorteXlab toolchain” is installed in /cortexlab/toolchain/current. “CorteXlab toolchain” means all radio related software, such as GNURadio, drivers, plugins, custom libraries. The advantage is that there is a clean and clear separation between linux-distribution provided software, and software explicitely built by our Dockerfiles. The drawback is that the environment needs to be correctly set for the toolchain to work, and that if you want to add custom libraries or GNURadio out of tree modules, it's better to install them in /cortexlab/toolchain/current as well
  • to set the environment correctly for the CorteXlab toolchain to be seen, the script /cortexlab/toolchains/current/bin/cxlb-toolchain-user-conf needs to be sourced. For an interactive bash session, this is done automatically because a link to this script is added in /etc/profile.d/, but for ssh sessions there's a trap: ssh does nothing automatically regarding setting the environment. If the ssh session is interactive, then ssh will instanciate an interactive bash process which will source the script in /etc/profile.d/, but if the ssh session is not interactive, such as running an experiment script, then the environment will not be automatically setup. In this case, the workaround is to execute bash -lc "<command to run>"
using_docker_containers.1693494631.txt.gz · Last modified: 2023/08/31 17:10 by mimbert

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki